Skip to content
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

WIP: flatpak distribution #639

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 8 additions & 0 deletions distribute/distribute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ echo "Compressing content..."
[ -f VisiCut-$VERSION.zip ] && rm VisiCut-$VERSION.zip
zip -r VisiCut-$VERSION.zip visicut/ > /dev/null || exit 1

echo "Building flatpak"
pushd flatpak
cp ../linux/VisiCut.desktop .
cp ../VisiCut-$VERSION.zip VisiCut.zip
flatpak-builder --user --install --force-clean build-dir de.thomas_oster.VisiCut.json
popd


echo ""
echo "****************************************************************"
echo "Mac OS Version: Building the Mac OS Version should work on all platforms"
Expand Down
38 changes: 38 additions & 0 deletions distribute/flatpak/de.thomas_oster.VisiCut.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"id" : "de.thomas_oster.VisiCut",
"branch" : "1.0",
"runtime" : "org.freedesktop.Platform",
"runtime-version" : "21.08",
"sdk" : "org.freedesktop.Sdk",
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.openjdk11" ],
"command": "/app/VisiCut.Linux",
"modules" : [ {
"name" : "openjdk",
"buildsystem" : "simple",
"build-commands" : [ "/usr/lib/sdk/openjdk11/install.sh" ]
}, {
"name" : "visicut",
"buildsystem" : "simple",
"build-commands": [
"unzip VisiCut.zip",
"mv visicut/* /app/" ],
"sources": [
{
"type": "file",
"path": "VisiCut.zip"
},
{
"type": "file",
"path": "../linux/VisiCut.desktop"
}

]
} ],
"finish-args" : [
"--env=PATH=/app/jre/bin:/usr/bin",
"--socket=x11",
"--share=ipc",
"--filesystem=home",
"--share=network"
]
}