Skip to content
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 10 commits into from
Jan 17, 2022
Merged

Fix Debian package erros. Change arch from "amd64" to "all" #288

merged 10 commits into from
Jan 17, 2022

Conversation

mahor1221
Copy link
Contributor

@mahor1221 mahor1221 commented Jan 16, 2022

Fix lintian errors
Short description in debian/changelog to remove lintian changelog warnings
Use launcher scripts that run java and electron from /usr/bin

I test it properly this time and installed the packaged that GitHub has built on a Debian virtual machine:
https://github.com/mahor1221/Tachidesk-Server/releases

2022-01-16_15-10-00
2022-01-16_14-57-37

Fix lintian errors
Short description in debian/changelog to hide lintian changelog warnings
Use launcher scripts that run java and electron from /usr/bin
scripts/resources/debian/source/include-binaries Outdated Show resolved Hide resolved
scripts/resources/tachidesk-browser-launcher-aur.sh Outdated Show resolved Hide resolved
scripts/unix-bundler.sh Outdated Show resolved Hide resolved
#!/bin/sh

if [ ! -f /usr/bin/electron ]; then
echo "Electron executable was not found! In order to run this launcher, you need Electron installed."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe mention the actual package name and an instruction to install electron with apt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find electron in Debian or Ubuntu's repositories. They install it with npm

Copy link
Contributor Author

@mahor1221 mahor1221 Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be like this:

sudo apt install npm
sudo npm install electron -g

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then ship it with the deb package?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe someone doesn't want to use Electron launcher and download an additional 100MBs

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"
Copy link
Member

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"

Tachidesk.jar => usr/share/java/tachidesk/tachidesk.jar
debian/faviconlogo.png => usr/share/pixmaps/tachidesk.png
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debian/tachidesk.png usr/share/pixmaps

@AriaMoradi AriaMoradi merged commit ec1589a into Suwayomi:master Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants