-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
lol.janjic.Splitcat.yml
69 lines (57 loc) · 2.02 KB
/
lol.janjic.Splitcat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# yaml-language-server: $schema=https://raw.githubusercontent.com/flatpak/flatpak-builder/main/data/flatpak-manifest.schema.json
---
app-id: lol.janjic.Splitcat
runtime: org.freedesktop.Platform
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
command: splitcat
separate-locales: false
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --socket=pulseaudio
- --share=network
modules:
- name: Splitcat
buildsystem: simple
only-arches:
- x86_64
build-commands:
- |
# Exit if any command fails
set -e
# Echo all commands for debug purposes
set -x
# No spaces in project name.
projectName=splitcat
projectId=lol.janjic.Splitcat
executableName=splitcat
# ------------------------------- Build Flatpak ----------------------------- #
# Extract portable Flutter build.
mkdir -p $projectName
tar -xf $projectName-linux-x64.tar.gz -C $projectName
# Copy the portable app to the Flatpak-based location.
cp -r $projectName /app/
chmod +x /app/$projectName/$executableName
mkdir -p /app/bin
ln -s /app/$projectName/$executableName /app/bin/$executableName
# Install the icon.
iconDir=/app/share/icons/hicolor/256x256/apps
mkdir -p $iconDir
cp -r linux/flutter/assets/icons/256x256/icon.png $iconDir/$projectId.png
# Install the desktop file.
desktopFileDir=/app/share/applications
mkdir -p $desktopFileDir
cp -r packaging/linux/$projectId.desktop $desktopFileDir/
# Install the appdata file.
metadataDir=/app/share/metainfo
mkdir -p $metadataDir
cp -r packaging/linux/$projectId.appdata.xml $metadataDir/
sources:
- type: file
url: https://github.com/vogonwann/splitcat/releases/download/v0.1.4/splitcat-linux-x64.tar.gz
sha256: 7d3a7f11c4244f038f670b2017848a9baa8c80cc5ddd4fa47cef3da7336a1232
- type: dir
path: ../splitcat