Skip to content

Commit 0da024d

Browse files
committed
Versioning updates
1 parent 2f18103 commit 0da024d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(grunt) {
2929
},
3030
'create-windows-installer': {
3131
x64: {
32-
appDirectory: 'temp-win64\\OpenBazaar-win32-x64',
32+
appDirectory: 'temp-win64/OpenBazaar-win32-x64',
3333
outputDirectory: 'build-win64',
3434
name: 'OpenBazaar',
3535
productName: 'OpenBazaar',
@@ -40,8 +40,8 @@ module.exports = function(grunt) {
4040
version: grunt.option('version') || '',
4141
title: 'OpenBazaar',
4242
iconUrl: 'https://openbazaar.org/downloads/icon.ico',
43-
setupIcon: 'windows\\icon.ico',
44-
loadingGif: 'windows\\ebay.gif',
43+
setupIcon: 'windows/icon.ico',
44+
loadingGif: 'windows/ebay.gif',
4545
noMsi: true
4646
}
4747
}

make_openbazaar.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ fi
8585
mkdir -p temp-$OS
8686
mkdir -p build-$OS/OpenBazaar-Server
8787

88+
# Clean past builds in OpenBazaar-Server
89+
rm -rf OpenBazaar-Server/dist/*
90+
8891
#command_exists grunt
8992
command_exists npm
9093
#command_exists wine
@@ -109,6 +112,7 @@ case $OS in win32*)
109112

110113
command_exists python
111114

115+
112116
echo 'Building Server Binary...'
113117
cd OpenBazaar-Server
114118
pip install virtualenv
@@ -124,9 +128,9 @@ case $OS in win32*)
124128
cd ..
125129

126130
echo 'Installing Node modules'
127-
#npm install electron-packager electron-builder
131+
npm install electron-packager
128132
cd OpenBazaar-Client
129-
#npm install
133+
npm install
130134

131135
echo 'Building Client Binary...'
132136
cd ../temp-$OS
@@ -138,9 +142,6 @@ case $OS in win32*)
138142

139143
echo 'Building Installer...'
140144

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-
144145
npm install -g grunt
145146
npm install --save-dev grunt-electron-installer
146147

@@ -206,11 +207,11 @@ case $OS in win32*)
206207

207208
echo 'Creating DMG installer from build...'
208209
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
210211

211212
echo 'Codesign the DMG and zip'
212213
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
214215

215216
;;
216217

0 commit comments

Comments
 (0)