change build scripts

This commit is contained in:
Aria Moradi 2021-02-04 23:47:16 +03:30
parent 1ea51bb9df
commit 3146fefb55
3 changed files with 10 additions and 5 deletions

View File

@ -1,10 +1,14 @@
#!/bin/bash #!/bin/bash
cp ../master/repo/* . cp ../master/repo/* .
new_build=$(ls | tail -1) new_jar_build=$(ls *.jar| tail -1)
echo "New build file name: $new_build" 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.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]" git config --global user.name "github-actions[bot]"

View File

@ -10,4 +10,5 @@ echo "count is: $filter_count"
if [ "$filter_count" -gt 0 ]; then if [ "$filter_count" -gt 0 ]; then
mkdir -p repo/ mkdir -p repo/
cp server/build/Tachidesk-*.jar repo/ cp server/build/Tachidesk-*.jar repo/
cp server/build/Tachidesk-*.zip repo/
fi fi

View File

@ -54,12 +54,12 @@ jobs:
cd master cd master
./scripts/getAndroid.sh ./scripts/getAndroid.sh
- name: Build the Jar - name: Build Jar and launch4j
uses: eskatos/gradle-command-action@v1 uses: eskatos/gradle-command-action@v1
with: with:
build-root-directory: master build-root-directory: master
wrapper-directory: master wrapper-directory: master
arguments: :server:shadowJar --stacktrace arguments: :server:windowsPackage --stacktrace
wrapper-cache-enabled: true wrapper-cache-enabled: true
dependencies-cache-enabled: true dependencies-cache-enabled: true
configuration-cache-enabled: true configuration-cache-enabled: true