replace electron-packager with electron-builder

This commit is contained in:
jobevers 2017-01-26 19:03:14 -06:00
parent 8ef958abf6
commit b62fffe626
2 changed files with 2 additions and 21 deletions

View file

@ -61,23 +61,10 @@ mv "$ROOT/lbrynet/dist/lbry" "$ROOT/app/dist"
if [ -n "${TEAMCITY_VERSION:-}" ]; then
electron-packager --electron-version=1.4.14 --overwrite "$ROOT/app" LBRY --icon="${ICON}"
(
pushd "$ROOT/lbry"
VERSION=$(python setup.py -V)
popd
if [ "$(uname)" == "Darwin" ]; then
PLATFORM="darwin"
rm -rf "$ROOT/package/osx/LBRY.app"
mv "LBRY-${PLATFORM}-x64/LBRY.app" "$ROOT/package/osx/LBRY.app"
cd "$ROOT/package/osx/"
security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
codesign --deep -s "${LBRY_DEVELOPER_ID}" -f LBRY.app
# check if the signing actually worked
codesign -vvv LBRY.app/
dmgbuild -s dmg_settings.py "LBRY" "lbry-${VERSION}.dmg"
mv "lbry-${VERSION}.dmg" "${ROOT}"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
OS="linux"
PLATFORM="linux"
@ -87,6 +74,8 @@ if [ -n "${TEAMCITY_VERSION:-}" ]; then
fi
)
node_modules/.bin/build
echo 'Build and packaging complete.'
else
echo 'Build complete. Run `electron electron` to launch the app'

View file

@ -92,11 +92,3 @@ if ! cmd_exists node; then
brew install node
fi
fi
if ! cmd_exists electron-packager; then
$SUDO npm install --global electron-packager
fi
if $OSX && ! cmd_exists dmgbuild; then
$SUDO pip install dmgbuild
fi