-
Notifications
You must be signed in to change notification settings - Fork 15
trying to make comprehensive builder/boilerplate #2
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
4 commits
Select commit
Hold shift + click to select a range
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,47 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <component type="desktop-application"> | ||
| <id></id> | ||
| <metadata_license>CC0-1.0</metadata_license> | ||
| <!-- Also available FSFAP MIT 0BSD CC0-1.0 CC0-1.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC-BY-SA-4.0 GFDL-1.1 GFDL-1.2 GFDL-1.3 BSL-1.0 FTL FSFUL --> | ||
| <name></name> | ||
| <summary></summary> | ||
| <summary xml:lang=""></summary> | ||
| <description> | ||
| <p>Steam is a software distribution service with an online store, automated installation, automatic updates, achievements, SteamCloud synchronized savegame and screenshot functionality, and many social features.</p> | ||
| </description> | ||
| <!-- Follow this guideline https://specifications.freedesktop.org/menu-spec/latest/category-registry.html--> | ||
| <categories> | ||
| <category></category> | ||
| <category></category> | ||
| </categories> | ||
| <url type="homepage"></url> | ||
| <url type="bugtracker"></url> | ||
| <url type="faq"></url> | ||
| <url type="help"></url> | ||
| <url type="donation"></url> | ||
| <url type="translate"></url> | ||
| <url type="contact"></url> | ||
| <url type="vcs-browser"></url> | ||
| <url type="contribute"></url> | ||
| <!-- Please follow SPDX License expressions https://spdx.org/specifications --> | ||
| <project_license>LicenseRef-proprietary=https://example.com/mylicense.html</project_license> | ||
| <developer></developer> | ||
| <screenshots> | ||
| <screenshot type="default"> | ||
| <caption></caption> | ||
| <caption xml:lang=""></caption> | ||
| <image type="source" width="1200" height="1026"></image> | ||
| </screenshot> | ||
| </screenshots> | ||
| <launchable type="desktop-id"></launchable> | ||
| <releases> | ||
| <release version="1.0.0.82" date="2024-10-03"> | ||
| <description></description> | ||
| </release> | ||
| </releases> | ||
| <bundle type="appimage">pkgname-pkgversion</bundle> | ||
| <content_rating type="oars-1.1"> | ||
| <!-- Can be generated via https://hughsie.github.io/oars/generate.html --> | ||
| <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,54 @@ | ||
| #!/bin/sh | ||
|
|
||
| ## arguments for script and run | ||
|
|
||
| set -eu | ||
| export ARCH="$(uname -m)" | ||
| export APPIMAGE_EXTRACT_AND_RUN=1 | ||
|
|
||
| ## tools that will be used next | ||
| APPIMAGETOOL="https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage" | ||
| LIB4BN="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin" | ||
| URUNTIME="$(wget -q https://api.github.com/repos/VHSgunzo/uruntime/releases -O - \ | ||
| | sed 's/[()",{} ]/\n/g' | grep -oi "https.*appimage.*dwarfs.*$ARCH$" | head -1)" | ||
|
|
||
|
|
||
| ## useful meta for appimagetool | ||
| ## APP_NAME= | ||
| ## DESKTOP= | ||
| ## ICON= | ||
| UPINFO="gh-releases-zsync|$(echo "$REPO" | tr '/' '|')|latest|*$ARCH.AppImage.zsync" | ||
|
|
||
|
|
||
| make_appdir() { | ||
| mkdir -p .AppDir | ||
| mkdir -p .AppDir/share/icon | ||
| mkdir -p .AppDir/share/metainfo | ||
| mkdir -p .AppDir/lib | ||
| mkdir -p .AppDir/bin | ||
| } | ||
|
|
||
| build() { | ||
| CURRENTDIR="$(readlink -f "$(dirname "$0")")" | ||
| git clone $REPO | ||
| } | ||
|
|
||
| sharun() { | ||
| ln -s ./bin/$APP ./AppRun | ||
| ./sharun -g | ||
| } | ||
|
|
||
| generate_app() { | ||
| printf "$UPINFO" > data.upd_info | ||
| llvm-objcopy --update-section=.upd_info=data.upd_info \ | ||
| --set-section-flags=.upd_info=noload,readonly ./uruntime | ||
| printf 'AI\x02' | dd of=./uruntime bs=1 count=3 seek=8 conv=notrunc | ||
| wget -q "$URUNTIME" -O ./uruntime | ||
| chmod +x ./uruntime | ||
| ./uruntime --appimage-mkdwarfs -f \ | ||
| --set-owner 0 --set-group 0 \ | ||
| --no-history --no-create-timestamp \ | ||
| --compression zstd:level=22 -S24 -B16 \ | ||
| --header uruntime \ | ||
| -i ./AppDir -o "$PACKAGE"-"$VERSION"-anylinux-"$ARCH".AppImage | ||
| } |
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.