pkg building script
This commit is contained in:
parent
9a44a4b33b
commit
7718724958
3 changed files with 44 additions and 8 deletions
|
|
@ -25,6 +25,7 @@ rm build_mas.py
|
|||
ln -s ../resources/bitcoin.com/mac/pkg/build_mas.py build_mas.py
|
||||
|
||||
echo "Signing ${APP_NAME}"
|
||||
export CURRENT_PATH=`pwd`
|
||||
export APP_PATH="pkg/${APP_NAME}/osx64/${APP_NAME}"
|
||||
export TMP_PATH="tmp"
|
||||
export DIST_PATH="dist"
|
||||
|
|
@ -36,6 +37,33 @@ if [ ! -d $DIST_PATH ]; then
|
|||
mkdir $DIST_PATH
|
||||
fi
|
||||
|
||||
cd "${APP_PATH}.app/Contents/Versions"
|
||||
ln -s "55.0.2883.87" "Current"
|
||||
|
||||
cd "55.0.2883.87/nwjs Framework.framework"
|
||||
mkdir -p "Versions/A"
|
||||
|
||||
mv "libffmpeg.dylib" "Versions/A/libffmpeg.dylib"
|
||||
ln -s "Versions/Current/libffmpeg.dylib" "libffmpeg.dylib"
|
||||
|
||||
mv "libnode.dylib" "Versions/A/libnode.dylib"
|
||||
ln -s "Versions/Current/libnode.dylib" "libnode.dylib"
|
||||
|
||||
mv "Helpers" "Versions/A/Helpers"
|
||||
ln -s "Versions/Current/Helpers" "Helpers"
|
||||
|
||||
mv "Resources" "Versions/A/Resources"
|
||||
ln -s "Versions/Current/Resources" "Resources"
|
||||
|
||||
mv "nwjs Framework" "Versions/A/nwjs Framework"
|
||||
ln -s "Versions/Current/nwjs Framework" "nwjs Framework"
|
||||
|
||||
cd "Versions"
|
||||
ln -s "A" "Current"
|
||||
|
||||
cd $CURRENT_PATH
|
||||
chmod -vR 777 "${APP_PATH}.app/Contents"
|
||||
|
||||
python build_mas.py -C build.cfg -O "${TMP_PATH}/${APP_NAME}.app" -I "${APP_PATH}.app" -P "$DIST_PATH/${APP_PACKAGE}-wallet-${APP_VERSION}-osx.pkg"
|
||||
|
||||
echo "Signing Done"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue