From 3146fefb5581a672eaa3e436a1b0e34959bd6052 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Thu, 4 Feb 2021 23:47:16 +0330 Subject: [PATCH] change build scripts --- .github/scripts/commit-repo.sh | 10 +++++++--- .github/scripts/create-repo.sh | 1 + .github/workflows/build.yml | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/scripts/commit-repo.sh b/.github/scripts/commit-repo.sh index 2c3964f..c206aab 100755 --- a/.github/scripts/commit-repo.sh +++ b/.github/scripts/commit-repo.sh @@ -1,10 +1,14 @@ #!/bin/bash cp ../master/repo/* . -new_build=$(ls | tail -1) -echo "New build file name: $new_build" +new_jar_build=$(ls *.jar| tail -1) +echo "last jar build file name: $new_jar_build" -cp -f $new_build Tachidesk-latest.jar +new_win32_build=$(ls *.zip| tail -1) +echo "last win32 build file name: $new_win32_build" + +cp -f $new_jar_build Tachidesk-latest.jar +cp -f $new_win32_build Tachidesk-latest-win32.zip git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" diff --git a/.github/scripts/create-repo.sh b/.github/scripts/create-repo.sh index 6947f35..d3031f6 100755 --- a/.github/scripts/create-repo.sh +++ b/.github/scripts/create-repo.sh @@ -10,4 +10,5 @@ echo "count is: $filter_count" if [ "$filter_count" -gt 0 ]; then mkdir -p repo/ cp server/build/Tachidesk-*.jar repo/ + cp server/build/Tachidesk-*.zip repo/ fi \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3796a8b..5e10fe3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,12 +54,12 @@ jobs: cd master ./scripts/getAndroid.sh - - name: Build the Jar + - name: Build Jar and launch4j uses: eskatos/gradle-command-action@v1 with: build-root-directory: master wrapper-directory: master - arguments: :server:shadowJar --stacktrace + arguments: :server:windowsPackage --stacktrace wrapper-cache-enabled: true dependencies-cache-enabled: true configuration-cache-enabled: true