|
4 | 4 | ## |
5 | 5 | ## Usage |
6 | 6 | ## ./make_openbazaar.sh OS |
7 | | -## |
| 7 | +## |
8 | 8 | ## OS supported: |
9 | 9 | ## win32 win64 linux osx |
10 | 10 | ## |
11 | 11 |
|
12 | 12 |
|
13 | | -ELECTRONVER=0.37.6 |
| 13 | +ELECTRONVER=0.37.8 |
14 | 14 | NODEJSVER=5.1.1 |
15 | 15 | PYTHONVER=2.7.11 |
16 | 16 | UPXVER=391 |
@@ -110,19 +110,19 @@ case $OS in win32*) |
110 | 110 | echo 'Building Server Binary...' |
111 | 111 | cd OpenBazaar-Server |
112 | 112 | py.exe -2.7-32 -m pip install virtualenv |
113 | | - |
| 113 | + |
114 | 114 | if [ -d env-$OS ]; then |
115 | 115 | rm -rf env-$OS |
116 | 116 | fi |
117 | 117 |
|
118 | 118 | if [ -d dist ]; then |
119 | 119 | rm -rf dist |
120 | 120 | fi |
121 | | - |
| 121 | + |
122 | 122 | if [ -d build ]; then |
123 | 123 | rm -rf build |
124 | 124 | fi |
125 | | - |
| 125 | + |
126 | 126 | py.exe -2.7-32 -m virtualenv env-$OS |
127 | 127 | . env-$OS/scripts/activate |
128 | 128 | pip install pyinstaller==3.1.1 |
@@ -191,33 +191,33 @@ case $OS in win32*) |
191 | 191 |
|
192 | 192 | echo 'Building Server Binary...' |
193 | 193 | cd OpenBazaar-Server |
194 | | - |
| 194 | + |
195 | 195 | if [ -d env-$OS ]; then |
196 | 196 | rm -rf env-$OS |
197 | 197 | fi |
198 | 198 |
|
199 | 199 | if [ -d dist ]; then |
200 | 200 | rm -rf dist |
201 | 201 | fi |
202 | | - |
| 202 | + |
203 | 203 | if [ -d build ]; then |
204 | 204 | rm -rf build |
205 | 205 | fi |
206 | | - |
| 206 | + |
207 | 207 | py.exe -2.7-x64 -m pip install virtualenv |
208 | | - |
| 208 | + |
209 | 209 | py.exe -2.7-x64 -m virtualenv env-$OS |
210 | 210 | . env-$OS/scripts/activate |
211 | 211 | pip install pyinstaller==3.1.1 |
212 | 212 | pip install setuptools==19.2 --upgrade |
213 | 213 | pip install https://openbazaar.org/downloads/miniupnpc-1.9-cp27-none-win_amd64.whl |
214 | 214 | pip install https://openbazaar.org/downloads/PyNaCl-0.3.0-cp27-none-win_amd64.whl |
215 | | - |
| 215 | + |
216 | 216 | pip install -r requirements.txt |
217 | | - |
218 | | - |
| 217 | + |
| 218 | + |
219 | 219 | rm -rf dist build |
220 | | - |
| 220 | + |
221 | 221 | pyinstaller --clean -i ../windows/icon.ico ../openbazaard.win.spec --win-private-assemblies --noconfirm |
222 | 222 | cp -rf dist/openbazaard/* ../build-$OS/OpenBazaar-Server |
223 | 223 | cp ob.cfg ../build-$OS/OpenBazaar-Server |
@@ -258,7 +258,7 @@ case $OS in win32*) |
258 | 258 |
|
259 | 259 | cd ../../../../ |
260 | 260 | mv build-$OS/OpenBazaarSetup.exe "build-$OS/OpenBazaar-${PACKAGE_VERSION}_Setup_x64.exe" |
261 | | - |
| 261 | + |
262 | 262 | echo "Do not forget to sign the release before distributing..." |
263 | 263 | echo "signtool sign /t http://timestamp.digicert.com /a [filename]" |
264 | 264 | ;; |
@@ -488,4 +488,3 @@ case $OS in win32*) |
488 | 488 | echo "Build done in build-$OS" |
489 | 489 |
|
490 | 490 | esac |
491 | | - |
0 commit comments