-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional appimage generation for linux build (#184)
- Loading branch information
Showing
5 changed files
with
123 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop-application"> | ||
<id>m8c</id> | ||
<metadata_license>MIT</metadata_license> | ||
<project_license>MIT</project_license> | ||
<name>m8c</name> | ||
<summary>A Dirtywave M8 remote client</summary> | ||
<description> | ||
<p>m8c is a client for Dirtywave M8 tracker's remote (headless) mode and can mirror the display and route audio.</p> | ||
</description> | ||
<launchable type="desktop-id">m8c.desktop</launchable> | ||
<url type="homepage">https://m8c.laamaa.fi</url> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<image></image> | ||
</screenshot> | ||
</screenshots> | ||
<provides> | ||
<id>m8c.desktop</id> | ||
</provides> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=m8c | ||
Comment= | ||
Exec=m8c | ||
Icon=icon | ||
Terminal=false | ||
Categories=Audio | ||
X-AppImage-Version=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
set -xe | ||
|
||
# Ubuntu 20.04 | ||
|
||
APP=m8c | ||
VERSION=2.0.0 | ||
|
||
if [ "$1" == "build-sdl" ]; then | ||
|
||
## Build SDL | ||
SDL_VERSION=3.2.6 | ||
SDL_SHA256="096a0b843dd1124afda41c24bd05034af75af37e9a1b9d205cc0a70193b27e1a SDL3-3.2.6.tar.gz" | ||
|
||
sudo apt-get install build-essential git make \ | ||
pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev \ | ||
libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev \ | ||
libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev \ | ||
libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \ | ||
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev libserialport-dev python2 | ||
|
||
if [ ! -d SDL3-$SDL_VERSION ]; then | ||
|
||
curl -O https://www.libsdl.org/release/SDL3-$SDL_VERSION.tar.gz | ||
|
||
if ! echo $SDL_SHA256 | sha256sum -c --status -; then | ||
echo "SDL archive checksum failed" >&2 | ||
exit 1 | ||
fi | ||
|
||
tar zxvf SDL3-$SDL_VERSION.tar.gz | ||
pushd SDL3-$SDL_VERSION | ||
mkdir build_x86_64 | ||
cmake -S . -B build_x86_64 | ||
cmake --build build_x86_64 | ||
sudo cmake --install build_x86_64 | ||
popd | ||
|
||
fi | ||
|
||
fi | ||
|
||
if [ "$2" == "build-m8c" ]; then | ||
make | ||
fi | ||
|
||
mkdir -p $APP.AppDir/usr/bin | ||
cp m8c $APP.AppDir/usr/bin/ | ||
cp gamecontrollerdb.txt $APP.AppDir | ||
|
||
mkdir -p $APP.AppDir/usr/share/applications/ $APP.AppDir/usr/share/metainfo/ | ||
cp package/appimage/m8c.desktop $APP.AppDir/usr/share/applications/ | ||
#appstreamcli seems to crash | ||
#cp package/appimage/m8c.appdata.xml $APP.AppDir/usr/share/metainfo/ | ||
cp package/appimage/icon.svg $APP.AppDir | ||
|
||
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) | ||
chmod +x ./appimagetool-*.AppImage | ||
./appimagetool-*.AppImage deploy ./$APP.AppDir/usr/share/applications/m8c.desktop | ||
./appimagetool-*.AppImage ./$APP.AppDir | ||
|
||
|