Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Maxima Build

on: [push]
on:
workflow_dispatch:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -88,6 +90,13 @@ jobs:
chmod +x target/x86_64-unknown-linux-musl/release/maxima-tui
chmod +x target/x86_64-unknown-linux-musl/release/maxima

- name: AppImage
if: runner.os == 'Linux'
run: |
ls -l target/x86_64-unknown-linux-musl/release
chmod +x pkg/AppImage/AppImage.sh
./pkg/AppImage/AppImage.sh

- uses: actions/upload-artifact@v4
if: runner.os == 'Linux'
with:
Expand Down
35 changes: 35 additions & 0 deletions pkg/AppImage/AppImage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh

# You might need to restart your pc if sharun doesn't create `AppDir` in this directory (It should create dirs on its own)

set -eu

ARCH="$(uname -m)"
SHARUN="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/753b3ba3c77a573f8c2eeb0b397752df2d3235df/useful-tools/quick-sharun.sh"

export ADD_HOOKS="self-updater.bg.hook"
#export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export OUTNAME=maxima-anylinux-"$ARCH".AppImage
export DESKTOP=./pkg/AppImage/maxima.desktop
export ICON=./maxima-resources/assets/logo.png
export DEPLOY_OPENGL=0
export DEPLOY_VULKAN=0
export DEPLOY_DOTNET=0

#Remove leftovers
rm -rf AppDir dist appinfo

# ADD LIBRARIES
wget --retry-connrefused --tries=30 "$SHARUN" -O ./quick-sharun
chmod +x ./quick-sharun

# Point to binaries
./quick-sharun ./target/$(uname -m)-unknown-linux-musl/release/maxima-bootstrap ./target/$(uname -m)-unknown-linux-musl/release/maxima-cli ./target/$(uname -m)-unknown-linux-musl/release/maxima-tui ./target/$(uname -m)-unknown-linux-musl/release/maxima

# Make AppImage
./quick-sharun --make-appimage

mkdir -p ./dist
mv -v ./*.AppImage* ./dist

echo "All Done!"
10 changes: 10 additions & 0 deletions pkg/AppImage/maxima.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=maxima
Comment=A free and open-source replacement for the EA Desktop Launcher for Linux and Windows.
Exec=maxima
Icon=maxima
StartupWMClass=maxima
Terminal=false
Type=Application
Categories=Game;
Keywords=ea;
Empty file.
Empty file.