Skip to content

Commit

Permalink
Fix osx commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hoffman authored and Brian Hoffman committed Jun 6, 2016
1 parent 16750a6 commit 0c68ac9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion make_openbazaar.sh
Expand Up @@ -10,7 +10,7 @@
##


ELECTRONVER=0.37.8
ELECTRONVER=1.4.4
NODEJSVER=5.1.1
PYTHONVER=2.7.11
UPXVER=391
Expand Down Expand Up @@ -304,10 +304,12 @@ case $OS in win32*)
echo 'Packaging Electron application...'
cd temp-$OS
../node_modules/.bin/electron-packager ../OpenBazaar-Client OpenBazaar --app-category-type=public.app-category.business --protocol-name=OpenBazaar --protocol=ob --platform=darwin --arch=x64 --icon=../osx/tent.icns --version=${ELECTRONVER} --overwrite --app-version=$PACKAGE_VERSION
../node_modules/.bin/electron-packager ../OpenBazaar-Client OpenBazaarClient --app-category-type=public.app-category.business --protocol-name=OpenBazaar --protocol=ob --platform=darwin --arch=x64 --icon=../osx/tent.icns --version=${ELECTRONVER} --overwrite --app-version=$PACKAGE_VERSION
cd ..

echo 'Moving .app to build directory...'
mv temp-$OS/OpenBazaar-darwin-x64/* build-$OS/
mv temp-$OS/OpenBazaarClient-darwin-x64/* build-$OS/
rm -rf build-$OS/OpenBazaar-darwin-x64

echo 'Create OpenBazaar-Server folder inside the .app...'
Expand All @@ -323,11 +325,16 @@ case $OS in win32*)
npm i electron-installer-dmg -g
codesign --force --deep --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaar.app
electron-installer-dmg ./build-$OS/OpenBazaar.app OpenBazaar-$PACKAGE_VERSION --icon ./osx/tent.icns --out=./build-$OS --overwrite --background=./osx/finder_background.png --debug
codesign --force --deep --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaarClient.app
electron-installer-dmg ./build-$OS/OpenBazaarClient.app OpenBazaarClient-$PACKAGE_VERSION --icon ./osx/tent.icns --out=./build-$OS --overwrite --background=./osx/finder_background.png --debug


echo 'Codesign the DMG and zip'
codesign --force --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaar-$PACKAGE_VERSION.dmg
codesign --force --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaarClient-$PACKAGE_VERSION.dmg
cd build-$OS
zip -r OpenBazaar-mac-$PACKAGE_VERSION.zip OpenBazaar.app
zip -r OpenBazaarClient-mac-$PACKAGE_VERSION.zip OpenBazaarClient.app

;;

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "openbazaar",
"productName": "OpenBazaar",
"version": "1.1.8",
"version": "1.1.9",
"description": "Decentralized Peer to Peer Marketplace for Bitcoin",
"main": "Gruntfile.js",
"scripts": {
Expand Down

0 comments on commit 0c68ac9

Please sign in to comment.