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 fail on Mac M2 #5

Closed
WebberLai opened this issue Aug 9, 2024 · 1 comment
Closed

Build fail on Mac M2 #5

WebberLai opened this issue Aug 9, 2024 · 1 comment

Comments

@WebberLai
Copy link

WebberLai commented Aug 9, 2024

Hi I try to build your project but fail
I'm not sure my progress is correct . could you check it ?

  1. clone project
  2. open terminal app , cd ~/Document/tc-client-launcher
  3. enter npm run build-all-dev
  4. shows log below

[email protected] build-all-dev
npm run build && npm run build-electron && npm run build-native

[email protected] build
ng build

✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.

Initial Chunk Files | Names | Raw Size | Estimated Transfer Size
main.js | main | 350.70 kB | 87.84 kB
polyfills.js | polyfills | 35.39 kB | 10.98 kB
styles.css | styles | 2.31 kB | 610 bytes
runtime.js | runtime | 1.06 kB | 596 bytes

                | Initial Total | 389.47 kB |               100.00 kB

Build at: 2024-08-09T06:32:47.481Z - Hash: ea1d9b503e54ed8c - Time: 1491ms

Warning: /Users/developer/Documents/Git Project/tc-client-launcher/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

Warning: /Users/developer/Documents/Git Project/tc-client-launcher/src/ipc/crypto-result.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

Warning: /Users/developer/Documents/Git Project/tc-client-launcher/src/ipc/log-event.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

[email protected] build-electron
tsc -p src/desktop-app --outDir dist/ && cp src/desktop-app/package.json dist/

[email protected] build-native
electron-rebuild -f && cp build/Release/tc_launcher.node dist/

⠹ Searching dependency treeAttempting to build a module with a space in the path
See nodejs/node-gyp#65 (comment) for reasons why this may not work
⠼ Building module: tc-client-launcher, Completed: 0(node:92148) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
(Use node --trace-deprecation ... to show where the warning was created)
Traceback (most recent call last):
File "/Users/developer/Documents/Git Project/tc-client-launcher/node_modules/node-gyp/gyp/gyp_main.py", line 42, in
import gyp # noqa: E402
^^^^^^^^^^
File "/Users/developer/Documents/Git Project/tc-client-launcher/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in
import gyp.input
File "/Users/developer/Documents/Git Project/tc-client-launcher/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in
from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'
Error: gyp failed with exit code: 1
at ChildProcess.onCpExit (/Users/developer/Documents/Git Project/tc-client-launcher/node_modules/node-gyp/lib/configure.js:325:16)
at ChildProcess.emit (node:events:520:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/Users/developer/Documents/Git Project/tc-client-launcher'

Error: node-gyp failed to rebuild '/Users/developer/Documents/Git Project/tc-client-launcher'
at ChildProcess. (/Users/developer/Documents/Git Project/tc-client-launcher/node_modules/@electron/rebuild/lib/module-type/node-gyp/node-gyp.js:118:24)
at ChildProcess.emit (node:events:520:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

@Shauren
Copy link
Owner

Shauren commented Aug 9, 2024

This will not work on mac - it uses arctium under the hood to do the client launching (the purpose of this launcher is to provide autologin functionality)

And since there is no arctium launcher for mac, this one doesn't work on mac either.

@Shauren Shauren closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
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

No branches or pull requests

2 participants