Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Update packaging script to match electron-packager breaking changes #270

Merged
merged 1 commit into from
Oct 14, 2016
Merged

Update packaging script to match electron-packager breaking changes #270

merged 1 commit into from
Oct 14, 2016

Conversation

jbleuzen
Copy link
Contributor

With version 8.0.0 of electron-packager asar options changed and you don't need --asar when you are using --asar.unpack.

This fix the behaviour of the "View demo" button on Protocol Handler demo.

@zeke
Copy link
Contributor

zeke commented Oct 13, 2016

Thanks, @jbleuzen. This looks strange though:

--asar.unpack

Sure you got that right?

@zeke
Copy link
Contributor

zeke commented Oct 13, 2016

cc @malept 👀

@jbleuzen
Copy link
Contributor Author

See the remove section :
electron/packager@v7.7.0...v8.0.0

@zeke
Copy link
Contributor

zeke commented Oct 13, 2016

Ah I see it here: https://github.com/electron-userland/electron-packager/blob/5bbbf03b5887bc25939b50858122d0df30d868c0/NEWS.md#removed

It looks like news.md and docs/api.md have not yet been updated to reflect what's in version 8

@jbleuzen
Copy link
Contributor Author

There is also this line explaining that you must not combine both --asar and --asar.unpack

https://github.com/electron-userland/electron-packager/blob/5bbbf03b5887bc25939b50858122d0df30d868c0/usage.txt#L30

"pack-linux": "electron-packager . --asar --asar-unpack=protocol-link.html --overwrite --platform=linux --arch=x64 --icon=assets/app-icon/png/64.png --prune=true --out=out",
"pack-mac": "electron-packager . --asar.unpack=protocol-link.html --overwrite --platform=darwin --arch=x64 --icon=assets/app-icon/mac/app.icns --prune=true --out=out --osx-sign.identity='Developer ID Application: GitHub' --extend-info=assets/mac/info.plist",
"pack-win": "electron-packager . ElectronAPIDemos --asar.unpack=protocol-link.html --overwrite --platform=win32 --arch=ia32 --icon=assets/app-icon/win/app.ico --prune=true --out=out --version-string.CompanyName='GitHub, Inc.' --version-string.FileDescription='Electron API Demos' --version-string.ProductName='Electron API Demos'",
"pack-linux": "electron-packager . --asar.unpack=protocol-link.html --overwrite --platform=linux --arch=x64 --icon=assets/app-icon/png/64.png --prune=true --out=out",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--icon is not necessary for Linux, see API docs for icon

@malept
Copy link
Member

malept commented Oct 13, 2016

It looks like news.md and docs/api.md have not yet been updated to reflect what's in version 8

Huh?

@zeke zeke merged commit ba0a9ba into electron:master Oct 14, 2016
@zeke
Copy link
Contributor

zeke commented Oct 14, 2016

Oops I wasn't looking at latest master. Sorry for the confusion and thanks for the fix, @jbleuzen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants