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

Mac archive tar.* doesn't run after extraction #784

Closed
jackric opened this issue Sep 28, 2016 · 1 comment · May be fixed by qcif/data-curator#563
Closed

Mac archive tar.* doesn't run after extraction #784

jackric opened this issue Sep 28, 2016 · 1 comment · May be fixed by qcif/data-curator#563
Assignees

Comments

@jackric
Copy link

jackric commented Sep 28, 2016

  • Version: 6.7.7
  • Target: Mac

Archives created this way don't run after extraction:
node_modules/.bin/build --mac tar.gz
You get:

dyld: Library not loaded: @rpath/Electron Framework.framework/Electron Framework
  Referenced from: /private/tmp/MyAppName/Contents/MacOS/Gridmarkets Envoy
  Reason: image not found

However if I go into the dist directory and manually create the tar.gz myself from the unpacked mac directory, that tar.gz unpacks and runs fine. I can't spot anything obvious that explains it from looking at targets/archive.js

@yuya-oc
Copy link
Contributor

yuya-oc commented Oct 5, 2016

I have same problem, too.

  • Version: 7.10.2
  • Target: mac:tar.gz

I feel --transform is not good for this case. I tried gtar manually like the way electron-builder spawn gtar:

cd dist/mac/<APPNAME>.app
gtar --gz --transform s,^.,<APPNAME>-<VERSION>-mac, -cf /PATH/TO/dist/mac/<APPNAME>-<VERSION>-mac.tar.gz .

The extracted <APPNAME>-<VERSION>-mac.app doesn't start due to the dyld error. Then I manually executed gtar like below:

cd dist/mac
gtar --gz -cf dist/mac/<APPNAME>-<VERSION>.tar.gz <APPNAME>.app

The extracted <APPNAME>.app can successfully start.

@develar develar added the mac label Oct 5, 2016
@develar develar self-assigned this Oct 5, 2016
@develar develar changed the title Mac archive doesn't run after extraction Mac archive tar.* doesn't run after extraction Oct 6, 2016
develar added a commit to develar/electron-builder that referenced this issue Oct 6, 2016
develar added a commit to develar/electron-builder that referenced this issue Oct 6, 2016
@develar develar closed this as completed in a185040 Oct 6, 2016
@develar develar added the bug label Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants