85
85
mkdir -p temp-$OS
86
86
mkdir -p build-$OS /OpenBazaar-Server
87
87
88
+ # Clean past builds in OpenBazaar-Server
89
+ rm -rf OpenBazaar-Server/dist/*
90
+
88
91
# command_exists grunt
89
92
command_exists npm
90
93
# command_exists wine
@@ -109,6 +112,7 @@ case $OS in win32*)
109
112
110
113
command_exists python
111
114
115
+
112
116
echo ' Building Server Binary...'
113
117
cd OpenBazaar-Server
114
118
pip install virtualenv
@@ -124,9 +128,9 @@ case $OS in win32*)
124
128
cd ..
125
129
126
130
echo ' Installing Node modules'
127
- # npm install electron-packager electron-builder
131
+ npm install electron-packager
128
132
cd OpenBazaar-Client
129
- # npm install
133
+ npm install
130
134
131
135
echo ' Building Client Binary...'
132
136
cd ../temp-$OS
@@ -138,9 +142,6 @@ case $OS in win32*)
138
142
139
143
echo ' Building Installer...'
140
144
141
- # This method deprecated
142
- # node_modules/.bin/electron-builder temp-$OS/OpenBazaar-win32-x64/ --platform=win --arch=x64 --out=build-$OS --config=config.json
143
-
144
145
npm install -g grunt
145
146
npm install --save-dev grunt-electron-installer
146
147
@@ -206,11 +207,11 @@ case $OS in win32*)
206
207
207
208
echo ' Creating DMG installer from build...'
208
209
npm i electron-installer-dmg -g
209
- electron-installer-dmg ./build-$OS /OpenBazaar.app OpenBazaar --icon ./osx/tent.icns --out=./build-$OS --overwrite --background=./osx/finder_background.png --debug
210
+ electron-installer-dmg ./build-$OS /OpenBazaar.app OpenBazaar- $PACKAGE_VERSION --icon ./osx/tent.icns --out=./build-$OS --overwrite --background=./osx/finder_background.png --debug
210
211
211
212
echo ' Codesign the DMG and zip'
212
213
codesign --force --sign " $SIGNING_IDENTITY " ./build-$OS /OpenBazaar-$PACKAGE_VERSION .dmg
213
- zip -r OpenBazaar-mac-PACKAGE_VERSION.zip ./build-osx/OpenBazaar-$PACKAGE_VERSION .dmg
214
+ zip -r ./build-osx/ OpenBazaar-mac-$ PACKAGE_VERSION .zip ./build-osx/OpenBazaar-$PACKAGE_VERSION .dmg
214
215
215
216
;;
216
217
0 commit comments