Skip to content

Commit

Permalink
Improved the release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Martomate committed Jan 1, 2024
1 parent 74237f6 commit 7006df4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
version: '3'

tasks:
create-launcher-jar:
cmds:
- sbt clean game/pack
- defer: rm TmpManifest.mf
- echo -n "Class-Path:" > TmpManifest.mf
- (cd game/target/pack && find lib -type file | awk '{print " " $0}') >> TmpManifest.mf
- mkdir -p game/src/pack
- jar -c -f game/src/pack/hexacraft-launcher.jar -m TmpManifest.mf --main-class hexacraft.main.Main
remove-launcher-jar:
cmds:
- rm game/src/pack/hexacraft-launcher.jar
package:
cmds:
- task: create-launcher-jar
- defer: { task: remove-launcher-jar }
- sbt clean game/packArchiveZip

0 comments on commit 7006df4

Please sign in to comment.