Skip to content

Commit 6621aa2

Browse files
committed
Windows build updates
1 parent 11e1048 commit 6621aa2

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

make_openbazaar.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
##
1111

1212

13-
ELECTRONVER=0.37.7
13+
ELECTRONVER=0.37.6
1414
NODEJSVER=5.1.1
1515
PYTHONVER=2.7.11
1616
UPXVER=391
@@ -125,13 +125,14 @@ case $OS in win32*)
125125

126126
py.exe -2.7-32 -m virtualenv env-$OS
127127
. env-$OS/scripts/activate
128-
pip install pyinstaller==3.1
128+
pip install pyinstaller==3.1.1
129129
pip install setuptools==19.2 --upgrade
130130
pip install https://openbazaar.org/downloads/miniupnpc-1.9-cp27-none-win32.whl
131131
pip install https://openbazaar.org/downloads/PyNaCl-0.3.0-cp27-none-win32.whl
132132
pip install setuptools==19.2
133133
pip install -r requirements.txt
134-
pyinstaller -i ../windows/icon.ico ../openbazaard.win32.spec --noconfirm
134+
pyinstaller --clean
135+
pyinstaller --clean -i ../windows/icon.ico ../openbazaard.win32.spec --win-private-assemblies --noconfirm
135136
cp -rf dist/openbazaard/* ../build-$OS/OpenBazaar-Server
136137
cp ob.cfg ../build-$OS/OpenBazaar-Server
137138
cd ..
@@ -167,8 +168,18 @@ case $OS in win32*)
167168
npm install -g grunt
168169
npm install --save-dev grunt-electron-installer
169170

171+
# Build full version
170172
grunt create-windows-installer --obversion=$PACKAGE_VERSION --appdir=temp-$OS/OpenBazaar-win32-ia32 --outdir=build-$OS
171173

174+
# Build client-only version
175+
rm -rf build-$OS/OpenBazaar-Server
176+
grunt create-windows-installer --obversion=$PACKAGE_VERSION --clientonly=Client --appdir=temp-$OS/OpenBazaar-win32-ia32 --outdir=build-$OS
177+
178+
cd ../../../../
179+
mv build-$OS/OpenBazaarSetup.exe build-$OS/OpenBazaar-${PACKAGE_VERSION}_Setup_i386.exe
180+
mv build-$OS/RELEASES build-$OS/RELEASES_WIN32
181+
mv "build-$OS/OpenBazaar-$PACKAGE_VERSION-full.nupkg" "build-$OS/OpenBazaar-$PACKAGE_VERSION-i386-full.nupkg"
182+
172183
echo "Do not forget to sign the release before distributing..."
173184
echo "signtool sign /t http://timestamp.digicert.com /a [filename]"
174185
;;
@@ -206,7 +217,8 @@ case $OS in win32*)
206217

207218

208219
rm -rf dist build
209-
pyinstaller -i ../windows/icon.ico ../openbazaard.win.spec --noconfirm
220+
221+
pyinstaller --clean -i ../windows/icon.ico ../openbazaard.win.spec --win-private-assemblies --noconfirm
210222
cp -rf dist/openbazaard/* ../build-$OS/OpenBazaar-Server
211223
cp ob.cfg ../build-$OS/OpenBazaar-Server
212224
cd ..
@@ -244,6 +256,9 @@ case $OS in win32*)
244256

245257
grunt create-windows-installer --obversion=$PACKAGE_VERSION --appdir=temp-$OS/OpenBazaar-win32-x64 --outdir=build-$OS
246258

259+
cd ../../../../
260+
mv build-$OS/OpenBazaarSetup.exe "build-$OS/OpenBazaar-${PACKAGE_VERSION}_Setup_x64.exe"
261+
247262
echo "Do not forget to sign the release before distributing..."
248263
echo "signtool sign /t http://timestamp.digicert.com /a [filename]"
249264
;;

0 commit comments

Comments
 (0)