Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build MacOS Executable #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wba2hi
Copy link
Contributor

@wba2hi wba2hi commented Aug 9, 2024

No description provided.

@wba2hi wba2hi marked this pull request as draft August 9, 2024 11:40
@wba2hi wba2hi force-pushed the build_macos_executable branch 2 times, most recently from 239620f to ae93163 Compare August 9, 2024 13:01
@wba2hi
Copy link
Contributor Author

wba2hi commented Aug 9, 2024

Converted to draft, since the build artifacts still had some issues on mac:

innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/exec/index.js
- /snapshot/cli/dist/commands/create/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/help/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:34:15)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/exec/index.js',
    '/snapshot/cli/dist/commands/create/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/help/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/exec/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/help/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:34:15)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/exec/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/help/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/init/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/help/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:34:15)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/init/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/help/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /snapshot/cli/node_modules/node-pty/lib/unixTerminal.js
- /snapshot/cli/node_modules/node-pty/lib/index.js
- /snapshot/cli/dist/modules/exec.js
- /snapshot/cli/dist/commands/init/index.js
- /snapshot/cli/dist/commands/upgrade/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/cli/node_modules/@oclif/core/lib/help/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js
- /snapshot/cli/node_modules/@oclif/core/lib/errors/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js
- /snapshot/cli/node_modules/@oclif/core/lib/index.js
- /snapshot/cli/bin/run
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js:34:15)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/snapshot/cli/node_modules/node-pty/lib/unixTerminal.js',
    '/snapshot/cli/node_modules/node-pty/lib/index.js',
    '/snapshot/cli/dist/modules/exec.js',
    '/snapshot/cli/dist/commands/init/index.js',
    '/snapshot/cli/dist/commands/upgrade/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/module-loader.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/help/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/handle.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/errors/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/cli-ux/index.js',
    '/snapshot/cli/node_modules/@oclif/core/lib/index.js',
    '/snapshot/cli/bin/run'
  ],
  pkg: true
}
(node:20879) [ERR_DLOPEN_FAILED] Warning: Error
module: @oclif/core@3.27.0
task: findCommand (create)
plugin: velocitas-cli
root: /snapshot/cli
code: ERR_DLOPEN_FAILED
message: dlopen(/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node, 0x0001): tried: '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (no such file), '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file)
See more details with DEBUG=*
(Use `velocitas-macos-x64 --trace-warnings ...` to show where the warning was created)
(node:20879) [ERR_DLOPEN_FAILED] Warning: Error
module: @oclif/core@3.27.0
task: findCommand (exec)
plugin: velocitas-cli
root: /snapshot/cli
code: ERR_DLOPEN_FAILED
message: dlopen(/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node, 0x0001): tried: '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (no such file), '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file)
See more details with DEBUG=*
(node:20879) [ERR_DLOPEN_FAILED] Warning: Error
module: @oclif/core@3.27.0
task: findCommand (init)
plugin: velocitas-cli
root: /snapshot/cli
code: ERR_DLOPEN_FAILED
message: dlopen(/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node, 0x0001): tried: '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (no such file), '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file)
See more details with DEBUG=*
(node:20879) [ERR_DLOPEN_FAILED] Warning: Error
module: @oclif/core@3.27.0
task: findCommand (upgrade)
plugin: velocitas-cli
root: /snapshot/cli
code: ERR_DLOPEN_FAILED
message: dlopen(/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node, 0x0001): tried: '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (no such file), '/Users/wba2hi/.cache/pkg/9aeb5066a1cd588a254583b1e53efbf4bd19c4da434053e147f7cd4eb33ae1d8/node-pty/build/Release/pty.node' (not a mach-o file)
See more details with DEBUG=*
Lifecycle management of Velocitas Vehicle Applications

VERSION
  velocitas-cli/ae931639b72fab6e9622e753c8ee927c7a8eadc3 darwin-x64
  node-v20.11.1

USAGE
  $ velocitas [COMMAND]

TOPICS
  cache      Interact with the project cache
  component  Interact with project components

COMMANDS
  package  Prints information about packages
  sync     Syncs Velocitas components into your repo.

@doosuu doosuu marked this pull request as ready for review August 12, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant