mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-30 04:23:31 +03:00
Updated core library and AppImage building script
This commit is contained in:
parent
bf31327532
commit
a425c3cddf
8 changed files with 34 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
/target
|
||||
/assets/ui/.dist
|
||||
|
||||
/scripts/builds
|
||||
/scripts/appimage/dist
|
||||
/scripts/appimage/*.AppImage
|
||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -31,7 +31,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anime-game-core"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"curl",
|
||||
|
|
|
@ -36,9 +36,6 @@ cargo build --release
|
|||
|
||||
### Building AppImage
|
||||
|
||||
Important to run it from the `scripts/appimage` folder
|
||||
|
||||
```
|
||||
cd scripts/appimage
|
||||
./build_appimage.sh
|
||||
./scripts/build.sh
|
||||
```
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4009dc5bfe93d4b56437bda4f484affe9c5170f2
|
||||
Subproject commit 7c1279a6c3df8ea1eda70064aaa5b7b340aef4ce
|
|
@ -1,5 +1,5 @@
|
|||
[Desktop Entry]
|
||||
Name=An Anime Game Launcher
|
||||
Name=An Anime Game Launcher GTK
|
||||
Icon=icon
|
||||
Exec=AppRun
|
||||
Type=Application
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
linuxdeploy="linuxdeploy-x86_64.AppImage"
|
||||
appimagetool="appimagetool-x86_64.AppImage"
|
||||
|
||||
version="0.3.1"
|
||||
icon="../../assets/images/icon.png"
|
||||
release_bin="../../target/release/anime-game-launcher"
|
||||
|
||||
version=$(awk '/^version = "(.+)"$/{print substr($3, 2, length($3) - 2)}' '../../Cargo.toml')
|
||||
|
||||
if [ ! -f $linuxdeploy ];
|
||||
then
|
||||
|
@ -30,12 +35,17 @@ fi
|
|||
|
||||
mkdir dist
|
||||
|
||||
cp "../../target/release/anime-game-launcher" "dist/anime-game-launcher"
|
||||
cp $release_bin "dist/anime-game-launcher"
|
||||
|
||||
echo "Executing LinuxDeploy..."
|
||||
|
||||
./$linuxdeploy --appdir dist -d anime-game-launcher.desktop --custom-apprun run.sh -i icon.png -o appimage
|
||||
./$linuxdeploy --appdir dist -d anime-game-launcher.desktop --custom-apprun run.sh -i $icon -o appimage
|
||||
|
||||
echo "Executing AppImageTool..."
|
||||
|
||||
VERSION=$version ./$appimagetool dist
|
||||
|
||||
rm -rf dist
|
||||
rm -f An_Anime_Game_Launcher_GTK-x86_64.AppImage
|
||||
|
||||
cp An_Anime_Game_Launcher_GTK-$version-x86_64.AppImage ../builds/an-anime-game-launcher-gtk-$version.AppImage
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 274 KiB |
16
scripts/build.sh
Executable file
16
scripts/build.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
curr_dir=$(dirname "$0")
|
||||
|
||||
cd $(dirname $curr_dir)
|
||||
|
||||
cargo build --release
|
||||
|
||||
cd $curr_dir
|
||||
|
||||
rm -rf builds
|
||||
mkdir builds
|
||||
|
||||
cp ../target/release/anime-game-launcher builds/anime-game-launcher
|
||||
|
||||
./appimage/build_appimage.sh
|
Loading…
Add table
Reference in a new issue