Add Flatpak-specific desktop file and env var to build
Introduces creation of a Flatpak-specific desktop file with correct Exec and Icon fields. Adds DENO_APP_BIN_PATH environment variable to Flatpak manifest and updates install commands to use the new desktop file.
This commit is contained in:
@@ -392,6 +392,21 @@ jobs:
|
|||||||
# Define manifest ID
|
# Define manifest ID
|
||||||
APP_ID="io.github.oop7.YTSage"
|
APP_ID="io.github.oop7.YTSage"
|
||||||
|
|
||||||
|
# Create a specific desktop file for Flatpak
|
||||||
|
# - Exec must be 'ytsage' (in path), not /usr/bin/ytsage
|
||||||
|
# - Icon must match the App ID (io.github.oop7.YTSage)
|
||||||
|
cat > flatpak.desktop <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=YTSage
|
||||||
|
Comment=YouTube downloader
|
||||||
|
Exec=ytsage
|
||||||
|
Icon=$APP_ID
|
||||||
|
Terminal=false
|
||||||
|
Categories=AudioVideo;Network;Utility;
|
||||||
|
StartupWMClass=YTSage
|
||||||
|
EOF
|
||||||
|
|
||||||
# Create manifest manually
|
# Create manifest manually
|
||||||
cat > ytsage_flatpak.json <<EOF
|
cat > ytsage_flatpak.json <<EOF
|
||||||
{
|
{
|
||||||
@@ -408,7 +423,8 @@ jobs:
|
|||||||
"--device=dri",
|
"--device=dri",
|
||||||
"--share=network",
|
"--share=network",
|
||||||
"--filesystem=host",
|
"--filesystem=host",
|
||||||
"--env=YTDLP_APP_BIN_PATH=/var/data/yt-dlp"
|
"--env=YTDLP_APP_BIN_PATH=/var/data/yt-dlp",
|
||||||
|
"--env=DENO_APP_BIN_PATH=/var/data/deno"
|
||||||
],
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
{
|
{
|
||||||
@@ -418,7 +434,7 @@ jobs:
|
|||||||
"mkdir -p /app/bin /app/share/ytsage",
|
"mkdir -p /app/bin /app/share/ytsage",
|
||||||
"cp -r dist/ytsage-v${version}-*/* /app/share/ytsage/",
|
"cp -r dist/ytsage-v${version}-*/* /app/share/ytsage/",
|
||||||
"ln -s /app/share/ytsage/ytsage /app/bin/ytsage",
|
"ln -s /app/share/ytsage/ytsage /app/bin/ytsage",
|
||||||
"install -D ytsage.desktop /app/share/applications/$APP_ID.desktop",
|
"install -D flatpak.desktop /app/share/applications/$APP_ID.desktop",
|
||||||
"install -D assets/branding/icons/icon.png /app/share/icons/hicolor/128x128/apps/$APP_ID.png"
|
"install -D assets/branding/icons/icon.png /app/share/icons/hicolor/128x128/apps/$APP_ID.png"
|
||||||
],
|
],
|
||||||
"sources": [
|
"sources": [
|
||||||
|
|||||||
Reference in New Issue
Block a user