Make AppImage
This commit is contained in:
parent
284e236d3c
commit
8b05bf05d0
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -4,6 +4,12 @@ target/
|
|||
# Auto generated lock files by compiler
|
||||
Cargo.lock
|
||||
|
||||
# Generated AppImages
|
||||
*.AppImage
|
||||
|
||||
# Binaries in AppImage /usr/bin
|
||||
packages/Blokator.AppDir/usr/bin/blokator
|
||||
|
||||
# Pacman auto generated files
|
||||
*.pkg.tar.zst
|
||||
*.pkg.tar.zst.sig
|
||||
|
|
15
build-appimage.sh
Executable file
15
build-appimage.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
# Prepare
|
||||
|
||||
if [ ! -f "packages/Blokator.AppDir/usr" ]
|
||||
then
|
||||
mkdir -p packages/Blokator.AppDir/usr/bin
|
||||
fi
|
||||
|
||||
# Build Blokator
|
||||
cargo build --release
|
||||
|
||||
# Copy the binary into packages/Blokator.AppDir/usr/bin/blokator
|
||||
cp target/release/blokator packages/Blokator.AppDir/usr/bin/blokator
|
||||
|
||||
# Build the AppImage using appimagetool
|
||||
ARCH=x86_64 appimagetool packages/Blokator.AppDir
|
1
packages/Blokator.AppDir/.DirIcon
Symbolic link
1
packages/Blokator.AppDir/.DirIcon
Symbolic link
|
@ -0,0 +1 @@
|
|||
blokator.png
|
5
packages/Blokator.AppDir/AppRun
Executable file
5
packages/Blokator.AppDir/AppRun
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||
EXEC="${HERE}/usr/bin/blokator"
|
||||
exec $EXEC "$@"
|
6
packages/Blokator.AppDir/blokator.desktop
Executable file
6
packages/Blokator.AppDir/blokator.desktop
Executable file
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Blokator
|
||||
Exec=blokator %u
|
||||
Icon=blokator
|
||||
Type=Application
|
||||
Categories=Utility
|
BIN
packages/Blokator.AppDir/blokator.png
Normal file
BIN
packages/Blokator.AppDir/blokator.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -11,4 +11,4 @@ then
|
|||
fi
|
||||
|
||||
sed -i "s/$1/$2/g" Cargo.toml
|
||||
sed -i "s/$1/$2/g" archlinux-pkgbuild/PKGBUILD
|
||||
sed -i "s/$1/$2/g" packages/archlinux/PKGBUILD
|
||||
|
|
Loading…
Reference in a new issue