Linux AppImage + build scripts infra
parent
eb0c327053
commit
a92c5112e7
@ -0,0 +1,6 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=MartianChess
|
||||||
|
Exec=martian-chess
|
||||||
|
Icon=martian-chess
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;BoardGame;
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cargo run --target x86_64-unknown-linux-gnu --release
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cp media/MartianChess.png platforms/linux/MartianChess.AppDir/martian-chess.png
|
||||||
@ -1,5 +1,23 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# cargo build --release
|
APP_DIR=platforms/linux/MartianChess.AppDir/
|
||||||
|
|
||||||
tar -czvf martian-chess-linux-beta.tar.gz --exclude windows ./lib ./assets -C ./target/release martian-chess
|
# Copy binary to build dir
|
||||||
|
TARGET_DIR=target/x86_64-unknown-linux-gnu/release/
|
||||||
|
BUILD_BIN=$TARGET_DIR/martian-chess
|
||||||
|
PACKAGE_BIN=$APP_DIR/AppRun
|
||||||
|
cp -f $BUILD_BIN $PACKAGE_BIN
|
||||||
|
|
||||||
|
# Copy dynamic libraries
|
||||||
|
PACKAGE_LIB_DIR=$APP_DIR/usr/lib/
|
||||||
|
LIB_DIR=lib/linux/
|
||||||
|
mkdir -p $PACKAGE_LIB_DIR
|
||||||
|
cp -f $LIB_DIR/* $PACKAGE_LIB_DIR/
|
||||||
|
|
||||||
|
# Copy assets
|
||||||
|
cp -rf assets $APP_DIR/
|
||||||
|
|
||||||
|
# Build AppImage file
|
||||||
|
DEST_DIR=packages/MartianChess.AppImage
|
||||||
|
ARCH=x86_64
|
||||||
|
appimagetool $APP_DIR $DEST_DIR
|
||||||
|
|||||||
Loading…
Reference in New Issue