mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
package: add configurable identity for signing
This commit is contained in:
parent
05bac56e35
commit
e61d8ec70e
1 changed files with 8 additions and 2 deletions
|
|
@ -1,12 +1,18 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION=`node -e 'process.stdout.write(require("./package").version)'`
|
VERSION=`node -e 'process.stdout.write(require("./package").version)'`
|
||||||
|
|
||||||
|
if [ -z "$HYPERTERM_OSX_SIGNING_IDENTITY" ]; then
|
||||||
|
echo "ENV var HYPERTERM_OSX_SIGNING_IDENTITY missing. Set it to the Common Name of the downloaded certificate from Apple."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm -rf ./app/node_modules
|
rm -rf ./app/node_modules
|
||||||
rm -rf ./dist/HyperTerm-darwin-x64
|
rm -rf ./dist/HyperTerm-darwin-x64
|
||||||
rm -rf ./dist/
|
rm -rf ./dist/
|
||||||
rm -rf ./build/
|
rm -rf ./build/
|
||||||
mkdir build
|
mkdir build
|
||||||
./install.sh
|
./scripts/install.sh
|
||||||
npm run lint
|
npm run lint
|
||||||
cd app
|
cd app
|
||||||
npm install
|
npm install
|
||||||
|
|
@ -16,7 +22,7 @@ cd -
|
||||||
cp app/index.html build/
|
cp app/index.html build/
|
||||||
cp -r app/dist build/
|
cp -r app/dist build/
|
||||||
mkdir dist
|
mkdir dist
|
||||||
electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --osx-sign --icon=static/icon.icns --prune --ignore=app/
|
electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="$VERSION" --osx-sign.identity="$HYPERTERM_OSX_SIGNING_IDENTITY" --icon=static/icon.icns --prune --ignore=app/
|
||||||
cd dist/HyperTerm-darwin-x64/
|
cd dist/HyperTerm-darwin-x64/
|
||||||
zip -r -y ../hyperterm-macos-x64-$VERSION.zip .
|
zip -r -y ../hyperterm-macos-x64-$VERSION.zip .
|
||||||
cd -
|
cd -
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue