mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
52 lines
2.1 KiB
Bash
Executable File
52 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
CANONPATH=$(readlink -f "$0")
|
|
DIRPATH="$(dirname "$CANONPATH")"
|
|
cd "$DIRPATH" || exit
|
|
cd ../../../ || exit
|
|
premake4 --with-mojoal gmake
|
|
cd make/linux || exit
|
|
make -j"$(nproc)" config=release ecode
|
|
cd "$DIRPATH" || exit
|
|
rm -rf ./ecode.app
|
|
mkdir -p ecode.app/assets
|
|
mkdir -p ecode.app/libs
|
|
chmod +x AppRun
|
|
cp AppRun ecode.app/
|
|
cp ecode.desktop ecode.app/
|
|
cp ../../../bin/assets/icon/ee.png ecode.app/ecode.png
|
|
cp ../../../libs/linux/libeepp.so ecode.app/libs/
|
|
cp ../../../bin/ecode ecode.app/
|
|
cp -L $(whereis libSDL2-2.0.so.0 | awk '{print $NF}') ecode.app/libs/
|
|
strip ecode.app/libs/libSDL2-2.0.so.0
|
|
mkdir -p ecode.app/assets/colorschemes
|
|
mkdir -p ecode.app/assets/fonts
|
|
cp -r ../../../bin/assets/colorschemes ecode.app/assets/
|
|
cp -r ../../../bin/assets/fonts/DejaVuSansMono.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/DejaVuSansMonoNerdFontComplete.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/nonicons.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/NotoSans-Regular.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/remixicon.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/NotoEmoji-Regular.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/fonts/NotoColorEmoji.ttf ecode.app/assets/fonts/
|
|
cp -r ../../../bin/assets/plugins ecode.app/assets/
|
|
mkdir -p ecode.app/assets/icon/
|
|
cp -r ../../../bin/assets/icon/ee.png ecode.app/assets/icon/
|
|
mkdir ecode.app/assets/ui
|
|
cp ../../../bin/assets/ui/breeze.css ecode.app/assets/ui/
|
|
|
|
VERSIONPATH=../../../src/tools/ecode/version.hpp
|
|
ECODE_MAJOR_VERSION=$(grep "define ECODE_MAJOR_VERSION" $VERSIONPATH | awk '{print $3}')
|
|
ECODE_MINOR_VERSION=$(grep "define ECODE_MINOR_VERSION" $VERSIONPATH | awk '{print $3}')
|
|
ECODE_PATCH_LEVEL=$(grep "define ECODE_PATCH_LEVEL" $VERSIONPATH | awk '{print $3}')
|
|
|
|
export APPIMAGETOOL="appimagetool"
|
|
|
|
if ! command -v appimagetool &> /dev/null
|
|
then
|
|
wget -nc "https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-$(arch).AppImage"
|
|
APPIMAGETOOL="./appimagetool-$(arch).AppImage"
|
|
chmod +x "$APPIMAGETOOL"
|
|
fi
|
|
|
|
$APPIMAGETOOL ecode.app ecode-"$ECODE_MAJOR_VERSION"."$ECODE_MINOR_VERSION"."$ECODE_PATCH_LEVEL"-"$(arch)".AppImage
|