Skip to content

Commit ce6d796

Browse files
committed
Fix code-signing for OSX
1 parent 731ae4e commit ce6d796

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

make_openbazaar.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ case $OS in win32*)
190190

191191
echo 'Packaging Electron application...'
192192
cd temp-$OS
193-
../node_modules/.bin/electron-packager ../OpenBazaar-Client OpenBazaar --sign=$SIGNING_IDENTITY --protocol-name=OpenBazaar --protocol=ob --platform=darwin --arch=x64 --icon=../osx/tent.icns --version=${ELECTRONVER} --overwrite
193+
../node_modules/.bin/electron-packager ../OpenBazaar-Client OpenBazaar --app-category-type=public.app-category.business --app-bundle-id=OpenBazaar --sign=$SIGNING_IDENTITY --protocol-name=OpenBazaar --protocol=ob --platform=darwin --arch=x64 --icon=../osx/tent.icns --version=${ELECTRONVER} --overwrite --app-version=$PACKAGE_VERSION
194194
cd ..
195195

196196
echo 'Moving .app to build directory...'
@@ -208,11 +208,12 @@ case $OS in win32*)
208208

209209
echo 'Creating DMG installer from build...'
210210
npm i electron-installer-dmg -g
211+
codesign --force --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaar.app
211212
electron-installer-dmg ./build-$OS/OpenBazaar.app OpenBazaar-$PACKAGE_VERSION --icon ./osx/tent.icns --out=./build-$OS --overwrite --background=./osx/finder_background.png --debug
212213

213214
echo 'Codesign the DMG and zip'
214215
codesign --force --sign "$SIGNING_IDENTITY" ./build-$OS/OpenBazaar-$PACKAGE_VERSION.dmg
215-
zip -r ./build-osx/OpenBazaar-mac-$PACKAGE_VERSION.zip ./build-osx/OpenBazaar-$PACKAGE_VERSION.dmg
216+
zip -r ./build-osx/OpenBazaar-mac-$PACKAGE_VERSION.zip ./build-osx/OpenBazaar.app
216217

217218
;;
218219

0 commit comments

Comments
 (0)