-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Debian package erros. Change arch from "amd64" to "all" #288
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
20e160c
Fix lintian errors
mahor1221 e1400c4
Update changelog version
mahor1221 f64e0b1
Rename laucnher scripts. Put electron installaion guide in electron-l…
mahor1221 977c661
Seperate debian packager codes from unix-bundler.sh
mahor1221 4eeb158
chmod +x debian-packager.sh
mahor1221 903bedb
Fix mistakes
mahor1221 02e6ba2
Fix mistakes
mahor1221 7e36713
Add missing '!' to shebang
mahor1221 d91b3a0
Change faviconlogo.png to tachidesk.png
mahor1221 579591f
Change faviconlogo.png to tachidesk.png
mahor1221 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) Contributors to the Suwayomi project | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
echo "creating debian package" | ||
jar=$(ls ../server/build/*.jar | tail -n1) | ||
release_ver=$(tmp="${jar%-*}" && echo "${tmp##*-}" | tr -d v) | ||
orig_dir="tachidesk-$release_ver" # dir uses hyphen "-" | ||
orig_tar_gz="tachidesk_$release_ver.orig.tar.gz" # orig file uses underscore "_" | ||
package_name="tachidesk_$release_ver-1_all.deb" | ||
|
||
# copy artifacts | ||
mkdir "$orig_dir" | ||
cp "$jar" "$orig_dir/Tachidesk.jar" | ||
cp -r "resources/debian" "$orig_dir" | ||
cp "resources/tachidesk-browser-launcher-standalone.sh" "$orig_dir/debian" | ||
cp "resources/tachidesk-debug-launcher-standalone.sh" "$orig_dir/debian" | ||
cp "resources/tachidesk-electron-launcher-standalone.sh" "$orig_dir/debian" | ||
cp "resources/tachidesk.desktop" "$orig_dir/debian" | ||
cp "../server/src/main/resources/icon/faviconlogo.png" "$orig_dir/debian" | ||
|
||
# prepare | ||
tar cvzf "$orig_tar_gz" "$orig_dir/Tachidesk.jar" | ||
sed -i "s/\${version}/$release_ver/" "$orig_dir/debian/changelog" | ||
|
||
# build | ||
mkdir "build" | ||
mv $orig_dir $orig_tar_gz "build/" | ||
cd "build/$orig_dir/debian" | ||
sudo apt install devscripts build-essential dh-exec | ||
# --lintian-opts --profile debian: build Debian packages on Ubuntu | ||
debuild -uc -us --lintian-opts --profile debian | ||
cd - | ||
|
||
# clean build directory | ||
mv "build/$package_name" "./" | ||
rm -rf "build" | ||
|
||
# clean up from possible previous runs | ||
if [ -f "../server/build/$package_name" ]; then | ||
rm "../server/build/$package_name" | ||
fi | ||
|
||
mv "$package_name" "../server/build/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
tachidesk (${version}-1) unstable; urgency=medium | ||
|
||
* See CHANGELOG.md on https://github.com/Suwayomi/Tachidesk-Server | ||
|
||
-- Mahor Foruzesh <mahorforuzesh@pm.me> Fri, 14 Jan 2022 00:00:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/dh-exec | ||
|
||
debian/tachidesk.png usr/share/pixmaps/ | ||
debian/tachidesk.desktop usr/share/applications/ | ||
tachidesk-browser-launcher.sh => usr/bin/tachidesk | ||
tachidesk-browser-launcher.sh => usr/bin/tachidesk-browser | ||
tachidesk-debug-launcher.sh => usr/bin/tachidesk-debug | ||
tachidesk-electron-launcher.sh => usr/bin/tachidesk-electron | ||
debian/tachidesk-browser-launcher-standalone.sh => usr/bin/tachidesk | ||
debian/tachidesk-browser-launcher-standalone.sh => usr/bin/tachidesk-browser | ||
debian/tachidesk-debug-launcher-standalone.sh => usr/bin/tachidesk-debug | ||
debian/tachidesk-electron-launcher-standalone.sh => usr/bin/tachidesk-electron | ||
Tachidesk.jar => usr/share/java/tachidesk/tachidesk.jar | ||
debian/faviconlogo.png => usr/share/pixmaps/tachidesk.png | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
debian/tachidesk.desktop usr/share/applications/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
debian/tachidesk.png | ||
debian/faviconlogo.png | ||
mahor1221 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /usr/bin/java -jar /usr/share/java/tachidesk/tachidesk.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /usr/bin/java -Dsuwayomi.tachidesk.config.server.debugLogsEnabled=true -jar /usr/share/java/tachidesk/tachidesk.jar |
14 changes: 14 additions & 0 deletions
14
scripts/resources/tachidesk-electron-launcher-standalone.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -f /usr/bin/electron ]; then | ||
echo "Electron executable was not found! | ||
In order to run this launcher, you need Electron installed. | ||
|
||
You can install it with these commands: | ||
sudo apt install npm | ||
sudo npm install electron -g | ||
" | ||
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/tachidesk.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp "../server/src/main/resources/icon/faviconlogo.png" "$orig_dir/debian/tachidesk.png"