Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update json-server-gui #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore linux & osx builds
  • Loading branch information
JesFot authored Oct 12, 2017
commit f8981b88f0cd810c7f8fdd659c5e3143dc98a581
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ build-osx: build/osx

dist: clean build
@rm -rf dist/$(VERSION)
cd build/json-server-gui && mv linux32 json-server-gui-linux32 && tar cvf json-server-gui-linux32.tar json-server-gui-linux32 && rm -rf json-server-gui-linux32
cd build/json-server-gui && mv linux64 json-server-gui-linux64 && tar cvf json-server-gui-linux64.tar json-server-gui-linux64 && rm -rf json-server-gui-linux64
# cd build/json-server-gui && mv osx json-server-gui-osx && zip -r json-server-gui-osx.zip json-server-gui-osx && rm -rf json-server-gui-osx
cd build/json-server-gui && mv linux32 json-server-gui-linux32 && tar zcvf json-server-gui-linux32.tar.gz json-server-gui-linux32 && rm -rf json-server-gui-linux32
cd build/json-server-gui && mv linux64 json-server-gui-linux64 && tar zcvf json-server-gui-linux64.tar.gz json-server-gui-linux64 && rm -rf json-server-gui-linux64
cd build/json-server-gui && mv osx json-server-gui-osx && zip -r json-server-gui-osx.zip json-server-gui-osx && rm -rf json-server-gui-osx
cd build/json-server-gui && mv win32 json-server-gui-win32 && zip -r json-server-gui-win32.zip json-server-gui-win32 && rm -rf json-server-gui-win32
cd build/json-server-gui && mv win64 json-server-gui-win64 && zip -r json-server-gui-win64.zip json-server-gui-win64 && rm -rf json-server-gui-win64
mkdir -p dist/$(VERSION)
mv build/json-server-gui/json-server-gui-linux32.tar dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-linux64.tar dist/$(VERSION)/
# mv build/json-server-gui/json-server-gui-osx.zip dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-linux32.tar.gz dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-linux64.tar.gz dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-osx.zip dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-win32.zip dist/$(VERSION)/
mv build/json-server-gui/json-server-gui-win64.zip dist/$(VERSION)/

release: dist
mv dist/$(VERSION) ~/Dropbox/Public/json-server-gui/
sed -i "s/json-server-gui\/[0-9]\+.[0-9]\+.[0-9]\+\/json-server-gui-/json-server-gui\/$(VERSION)\/json-server-gui-/g" README.md

clean:
rm -rf build

Expand Down Expand Up @@ -75,4 +79,4 @@ build/osx: node_modules
@mv db.json.bak src/db.json 2> /dev/null || echo
@touch build/osx

.PHONY: build clean build-linux32 build-linux64 build-windows build-osx dist
.PHONY: build clean build-linux32 build-linux64 build-windows build-osx dist release