mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Replace linux-all with linux-assets (#381)
* Move linux package specific files to scripts/resources/pkg * Replace linux-all with linux-assets * Fix linux-x64 launchers issue * Remove -e
This commit is contained in:
16
.github/workflows/build_push.yml
vendored
16
.github/workflows/build_push.yml
vendored
@@ -81,11 +81,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
|
- debian-all
|
||||||
|
- linux-assets
|
||||||
- linux-x64
|
- linux-x64
|
||||||
- linux-all
|
|
||||||
- macOS-x64
|
- macOS-x64
|
||||||
- macOS-arm64
|
- macOS-arm64
|
||||||
- debian-all
|
|
||||||
- windows-x64
|
- windows-x64
|
||||||
- windows-x86
|
- windows-x86
|
||||||
|
|
||||||
@@ -133,11 +133,15 @@ jobs:
|
|||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-x64
|
name: debian-all
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-all
|
name: linux-assets
|
||||||
|
path: release
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux-x64
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -147,10 +151,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: macOS-arm64
|
name: macOS-arm64
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: debian-all
|
|
||||||
path: release
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-x64
|
name: windows-x64
|
||||||
|
|||||||
32
.github/workflows/publish.yml
vendored
32
.github/workflows/publish.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: gradle/wrapper-validation-action@v1
|
uses: gradle/wrapper-validation-action@v1
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build Jar
|
name: Build Jar
|
||||||
needs: check_wrapper
|
needs: check_wrapper
|
||||||
@@ -81,15 +81,15 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [
|
os:
|
||||||
linux-x64,
|
- debian-all
|
||||||
linux-all,
|
- linux-assets
|
||||||
macOS-x64,
|
- linux-x64
|
||||||
macOS-arm64,
|
- macOS-x64
|
||||||
debian-all,
|
- macOS-arm64
|
||||||
windows-x64,
|
- windows-x64
|
||||||
windows-x86,
|
- windows-x86
|
||||||
]
|
|
||||||
name: Make ${{ matrix.os }} release
|
name: Make ${{ matrix.os }} release
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -135,11 +135,15 @@ jobs:
|
|||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-x64
|
name: debian-all
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-all
|
name: linux-assets
|
||||||
|
path: release
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux-x64
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -149,10 +153,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: macOS-arm64
|
name: macOS-arm64
|
||||||
path: release
|
path: release
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: debian-all
|
|
||||||
path: release
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-x64
|
name: windows-x64
|
||||||
|
|||||||
@@ -42,9 +42,8 @@ main() {
|
|||||||
make_deb_package
|
make_deb_package
|
||||||
move_release_to_output_dir
|
move_release_to_output_dir
|
||||||
;;
|
;;
|
||||||
linux-all)
|
linux-assets)
|
||||||
RELEASE="$RELEASE_NAME.tar.gz"
|
RELEASE="$RELEASE_NAME.tar.gz"
|
||||||
cp "$JAR" "$RELEASE_NAME/tachidesk-server.jar"
|
|
||||||
copy_linux_package_assets_to "$RELEASE_NAME/"
|
copy_linux_package_assets_to "$RELEASE_NAME/"
|
||||||
tar -I "gzip -9" -cvf "$RELEASE" "$RELEASE_NAME/"
|
tar -I "gzip -9" -cvf "$RELEASE" "$RELEASE_NAME/"
|
||||||
move_release_to_output_dir
|
move_release_to_output_dir
|
||||||
@@ -151,11 +150,11 @@ copy_linux_package_assets_to() {
|
|||||||
local output_dir
|
local output_dir
|
||||||
output_dir="$(readlink -e "$1" || exit 1)"
|
output_dir="$(readlink -e "$1" || exit 1)"
|
||||||
|
|
||||||
cp "scripts/resources/tachidesk-server-browser-launcher.sh" "$output_dir/"
|
cp "scripts/resources/pkg/tachidesk-server-browser-launcher.sh" "$output_dir/"
|
||||||
cp "scripts/resources/tachidesk-server-debug-launcher.sh" "$output_dir/"
|
cp "scripts/resources/pkg/tachidesk-server-debug-launcher.sh" "$output_dir/"
|
||||||
cp "scripts/resources/tachidesk-server-electron-launcher.sh" "$output_dir/"
|
cp "scripts/resources/pkg/tachidesk-server-electron-launcher.sh" "$output_dir/"
|
||||||
cp "scripts/resources/tachidesk-server.desktop" "$output_dir/"
|
cp "scripts/resources/pkg/tachidesk-server.desktop" "$output_dir/"
|
||||||
cp "scripts/resources/systemd"/* "$output_dir/"
|
cp "scripts/resources/pkg/systemd"/* "$output_dir/"
|
||||||
cp "server/src/main/resources/icon/faviconlogo.png" \
|
cp "server/src/main/resources/icon/faviconlogo.png" \
|
||||||
"$output_dir/tachidesk-server.png"
|
"$output_dir/tachidesk-server.png"
|
||||||
}
|
}
|
||||||
@@ -274,7 +273,7 @@ make_windows_package() {
|
|||||||
# set -e is not recommended and unpredictable.
|
# set -e is not recommended and unpredictable.
|
||||||
# see https://stackoverflow.com/questions/64786/error-handling-in-bash
|
# see https://stackoverflow.com/questions/64786/error-handling-in-bash
|
||||||
# and http://mywiki.wooledge.org/BashFAO/105
|
# and http://mywiki.wooledge.org/BashFAO/105
|
||||||
set -euo pipefail
|
set -uo pipefail
|
||||||
error() {
|
error() {
|
||||||
local parent_lineno="$1"
|
local parent_lineno="$1"
|
||||||
local message="$2"
|
local message="$2"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec /usr/bin/java -jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
||||||
5
scripts/resources/pkg/tachidesk-server-debug-launcher.sh
Normal file
5
scripts/resources/pkg/tachidesk-server-debug-launcher.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec /usr/bin/java \
|
||||||
|
-Dsuwayomi.tachidesk.config.server.debugLogsEnabled=true \
|
||||||
|
-jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
||||||
12
scripts/resources/pkg/tachidesk-server-electron-launcher.sh
Normal file
12
scripts/resources/pkg/tachidesk-server-electron-launcher.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -f /usr/bin/electron ]; then
|
||||||
|
echo "Electron executable was not found!
|
||||||
|
In order to run this launcher, you need Electron installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec /usr/bin/java \
|
||||||
|
-Dsuwayomi.tachidesk.config.server.webUIInterface=electron \
|
||||||
|
-Dsuwayomi.tachidesk.config.server.electronPath=/usr/bin/electron \
|
||||||
|
-jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec /usr/bin/java -jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
|
||||||
|
exec ./jre/bin/java -jar ./tachidesk-server.jar
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec /usr/bin/java \
|
|
||||||
|
exec ./jre/bin/java \
|
||||||
-Dsuwayomi.tachidesk.config.server.debugLogsEnabled=true \
|
-Dsuwayomi.tachidesk.config.server.debugLogsEnabled=true \
|
||||||
-jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
-jar ./tachidesk-server.jar
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -f /usr/bin/electron ]; then
|
exec ./jre/bin/java \
|
||||||
echo "Electron executable was not found!
|
|
||||||
In order to run this launcher, you need Electron installed."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec /usr/bin/java \
|
|
||||||
-Dsuwayomi.tachidesk.config.server.webUIInterface=electron \
|
-Dsuwayomi.tachidesk.config.server.webUIInterface=electron \
|
||||||
-Dsuwayomi.tachidesk.config.server.electronPath=/usr/bin/electron \
|
-Dsuwayomi.tachidesk.config.server.electronPath=./electron/electron \
|
||||||
-jar /usr/share/java/tachidesk-server/tachidesk-server.jar
|
-jar ./tachidesk-server.jar
|
||||||
|
|||||||
Reference in New Issue
Block a user