-
Notifications
You must be signed in to change notification settings - Fork 283
add upstream distribution sources for linux + flatpak package #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
acebfc2
feat: create desktop/metainfo files for linux
getchoo ebbed1d
feat: init flatpak package
getchoo 0818782
feat(actions): add flatpak workflow
getchoo 79e6d66
chore: match metainfo desc in desktop file
getchoo cd94186
chore: drop cargo sources file
getchoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 @@ | ||
name: Flatpak Build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: bilelmoussaoui/flatpak-github-actions:gnome-42 | ||
options: --privileged | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Build Flatpak bundle | ||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | ||
with: | ||
bundle: modrinthApp.flatpak | ||
manifest-path: distribution/com.modrinth.ModrinthApp.yml | ||
cache-key: flatpak-builder-${{ github.ref }} |
This file contains hidden or 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 |
---|---|---|
|
@@ -112,3 +112,6 @@ fabric.properties | |
|
||
theseus.iml | ||
|
||
# flatpak | ||
.flatpak-builder | ||
flatbuild |
This file contains hidden or 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,3 @@ | ||
[submodule "distribution/shared-modules"] | ||
path = distribution/shared-modules | ||
url = https://github.com/flathub/shared-modules.git |
This file contains hidden or 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,12 @@ | ||
[Desktop Entry] | ||
Name=Modrinth App | ||
Comment=Modrinth's game launcher for creating and playing Modrinth projects | ||
Exec=modrinth-app | ||
Icon=com.modrinth.ModrinthApp | ||
Type=Application | ||
Terminal=false | ||
StartupNotify=true | ||
Categories=Game;ActionGame;AdventureGame;Simulation; | ||
Keywords=game;minecraft;mc; | ||
StartupWMClass=ModrinthApp | ||
Version=1.4 |
This file contains hidden or 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"> | ||
<id>com.modrinth.ModrinthApp</id> | ||
<launchable type="desktop-id">com.modrinth.ModrinthApp.desktop</launchable> | ||
<name>Modrinth App</name> | ||
<developer_name>Modrinth</developer_name> | ||
<summary>Modrinth's game launcher for creating and playing Modrinth projects</summary> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0-only</project_license> | ||
<!--<url type="homepage">https://modrinth.com</url>--> | ||
<!--<url type="bugtracker">https://github.com/modrinth/theseus/issues</url>--> | ||
<!--<url type="vcs-browser">https://github.com/modrinth/theseus</url>--> | ||
<!--<url type="contribute">https://github.com/modrinth/theseus</url>--> | ||
<description> | ||
<p>Modrinth's game launcher for creating and playing Modrinth projects</p> | ||
</description> | ||
<content_rating type="oars-1.1"> | ||
<content_attribute id="violence-fantasy">moderate</content_attribute> | ||
<content_attribute id="social-chat">intense</content_attribute> | ||
</content_rating> | ||
</component> |
This file contains hidden or 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,81 @@ | ||
id: com.modrinth.ModrinthApp | ||
runtime: org.gnome.Platform | ||
runtime-version: "42" | ||
sdk: org.gnome.Sdk | ||
sdk-extensions: | ||
- org.freedesktop.Sdk.Extension.rust-stable | ||
- org.freedesktop.Sdk.Extension.node18 | ||
|
||
command: modrinth-app | ||
finish-args: | ||
- --filesystem=xdg-run/app/com.discordapp.Discord:create # allows for discord rpc | ||
- --device=all | ||
- --share=ipc | ||
- --share=network | ||
- --socket=pulseaudio | ||
- --socket=x11 | ||
- --socket=wayland | ||
|
||
build-options: | ||
append-path: "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node18/bin" | ||
|
||
build-args: | ||
- --share=network | ||
|
||
modules: | ||
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json | ||
|
||
# for some controller mods (see https://github.com/isXander/Controlify/issues/31) | ||
- shared-modules/libusb/libusb.json | ||
|
||
- name: flite | ||
buildsystem: autotools | ||
config-opts: | ||
- --enable-shared | ||
- --with-audio=pulseaudio | ||
sources: | ||
- type: archive | ||
url: https://github.com/festvox/flite/archive/refs/tags/v2.2.tar.gz | ||
sha512: 1ca2f4145651490ef8405fdb830a3b42e885020a7603d965f6a5581b01bed41047d396b38c2ceab138fc0b28d28078db17acd2b5a84c6444cb99d65c581afa72 | ||
cleanup: | ||
- '/lib/libflite*.a' | ||
|
||
- name: modrinth-app | ||
buildsystem: simple | ||
build-options: | ||
append-path: /run/build/modrinth-app/pnpm | ||
build-commands: | ||
- pnpm config set store-dir .pnpm-store | ||
- cd theseus/theseus_gui && pnpm install | ||
- cd theseus/theseus_gui && pnpm build | ||
- cd theseus && cargo fetch --locked --manifest-path Cargo.toml | ||
- cd theseus && cargo build --locked --release | ||
|
||
- install -Dm755 theseus/target/release/theseus_gui /app/bin/modrinth-app | ||
|
||
- mkdir -p /app/share/{icons/hicolor/256x256/apps,applications,metainfo} | ||
|
||
- cp theseus/theseus_gui/src-tauri/icons/Square284x284Logo.png /app/share/icons/hicolor/256x256/apps/com.modrinth.ModrinthApp.png | ||
- install -Dm644 com.modrinth.ModrinthApp.metainfo.xml /app/share/metainfo/com.modrinth.ModrinthApp.metainfo.xml | ||
- install -Dm644 com.modrinth.ModrinthApp.desktop /app/share/applications/com.modrinth.ModrinthApp.desktop | ||
|
||
sources: | ||
- type: archive | ||
url: https://registry.npmjs.org/@pnpm/linux-x64/-/linux-x64-7.33.5.tgz | ||
sha512: d594a9e505b33a5a7b8684645ca762a2c24c6b3e1e477afe8f412d0dd5c8b1b9b9e636e3a19ae0ceeed603d8507f84b081ed12b283ac543bc4bf26d591cab4c5 | ||
dest: pnpm | ||
|
||
- type: shell | ||
commands: | ||
- chmod +x pnpm | ||
dest: pnpm | ||
|
||
- type: dir | ||
path: ../ | ||
dest: theseus | ||
|
||
- type: file | ||
path: com.modrinth.ModrinthApp.metainfo.xml | ||
|
||
- type: file | ||
path: com.modrinth.ModrinthApp.desktop |
Submodule shared-modules
added at
e4f3df
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.