Skip to content

Commit

Permalink
zip win32 dist package to 7z
Browse files Browse the repository at this point in the history
  • Loading branch information
jusongchen committed Apr 19, 2019
1 parent 04492fc commit f590ce6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
24 changes: 9 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ win32:
zip -r lepus-win32.zip views/
mv lepus-win32.zip ./dist-win32/lepus-win32.zip

7z a lepus-win32.7z lepus.exe
# return 0 if when no file to rm
rm public/images/* || true
7z a lepus-win32.7z public/ -xr!*DS_Store
7z a lepus-win32.7z views/
mv lepus-win32.7z ./dist-win32/lepus-win32.7z

osx:
GOOS=darwin GOARCH=amd64 go build \
-ldflags "-s -w -X ${PROJECT}/version.Release=${RELEASE} \
Expand All @@ -31,6 +38,8 @@ osx:
zip -r lepus-osx.zip public/
zip -r lepus-osx.zip views/
mv lepus-osx.zip ./dist-osx/lepus-osx.zip


run: osx
mkdir ../lepus-tmp || true
rm -fr ../lepus-tmp/lepus-osx || true
Expand All @@ -39,20 +48,5 @@ run: osx
cd ../lepus-tmp && lepus-osx/lepus -port 8081


win32run:
git clone https://github.com/jusongchen/lepus.git
cd dist-win32
unzip lepus-win32.zip -d lepus-win32
open -o http://localhost:8082
lepus-win32\lepus.exe -p 8082

win64run:
git clone https://github.com/jusongchen/lepus.git
cd dist-win64
unzip lepus-win64.zip -d lepus-win64
open -o http://localhost:8082
lepus-win64\lepus.exe -p 8082


test:
go test -v -race ./...
Binary file added dist-win32/lepus-win32.7z
Binary file not shown.
Binary file modified dist-win32/lepus-win32.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions doc/runLepusWin32.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rm -fr lepus
git clone https://github.com/jusongchen/lepus.git
cd lepus/dist-win32
unzip lepus-win32.zip -d lepus-win32
open -o http://localhost:8082
lepus-win32/lepus.exe -port 8082

0 comments on commit f590ce6

Please sign in to comment.