You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
martian-chess/scripts/package-linux.sh

24 lines
526 B
Bash

#!/usr/bin/env bash
APP_DIR=platforms/linux/MartianChess.AppDir/
# 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