Skip to content

Commit

Permalink
Add last zip step to windows cli package script
Browse files Browse the repository at this point in the history
  • Loading branch information
mtolly committed Jan 20, 2024
1 parent d059f18 commit c0141bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions haskell/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ onyx-*.exe
/packages/onyx-exe-toolkit/*.cabal
stack*.yaml.lock
onyx-20*
onyx-command-line-*
*.AppImage
1 change: 1 addition & 0 deletions haskell/package-cli
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ case $(uname) in
stack exec -- onyx-package changes
stack exec -- onyx-package version-write win/onyx-resources/README.html
stack exec -- onyx-package dlls win/onyx.exe
stack exec -- onyx-package version-print | ./win-cli-package.sh
;;
Darwin )
# TODO
Expand Down
11 changes: 11 additions & 0 deletions haskell/win-cli-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

VERSION=$(cat -)
if [[ ! $VERSION =~ ^[0-9]{8}$ ]]; then
echo "Not a valid program version."
exit 1
fi
ZIPNAME=onyx-command-line-$VERSION-windows-x64
rm -rf $ZIPNAME $ZIPNAME.zip
mv win $ZIPNAME
stack exec -- zip -r $ZIPNAME.zip $ZIPNAME

0 comments on commit c0141bf

Please sign in to comment.