From 7210d6ca1281700cad09bd167901196c4b0dfbdb Mon Sep 17 00:00:00 2001 From: ThomasTraineau Date: Sat, 1 Apr 2023 14:08:15 +0200 Subject: [PATCH] updated version --- new_release.sh | 14 ++++++++++---- variables/variables.go | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/new_release.sh b/new_release.sh index 7382e38..fbcf222 100755 --- a/new_release.sh +++ b/new_release.sh @@ -1,9 +1,15 @@ # update the next version in the variables file (variable CURRENT_VERSION) -rm build/bin/* +echo -n "Did you update the version in the variables file ? " +read updated_version -wails build -platform "windows/amd64" -nsis -o "hatt-windows-amd64.exe" +if [ $updated_version == 'y' ]; then -mv ./build/bin/hatt-amd64-installer.exe ./build/bin/hatt-windows-amd64-installer.exe + rm build/bin/* -wails build -platform "linux/amd64" -o "hatt-linux-amd64" \ No newline at end of file + wails build -platform "windows/amd64" -nsis -o "hatt-windows-amd64.exe" + + mv ./build/bin/hatt-amd64-installer.exe ./build/bin/hatt-windows-amd64-installer.exe + + wails build -platform "linux/amd64" -o "hatt-linux-amd64" +fi \ No newline at end of file diff --git a/variables/variables.go b/variables/variables.go index 32e9441..5dcb7ce 100644 --- a/variables/variables.go +++ b/variables/variables.go @@ -30,7 +30,7 @@ var RESULTS []ItemList var ARGS []string -var CURRENT_VERSION string = "0.1.1" +var CURRENT_VERSION string = "0.2" type Item struct { Name string