From 8b2b03f994dc93a714a92727b21bdabe40a9c172 Mon Sep 17 00:00:00 2001 From: Ribbon <ribbon_45@proton.me> Date: Fri, 26 Jul 2024 00:38:56 +0000 Subject: [PATCH] Finish the shortcuts for recipe executables --- recipes/wip/finance/bitcoin/electrum/recipe.toml | 3 ++- recipes/wip/games/rts/mindustry/recipe.toml | 3 ++- recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml | 3 ++- recipes/wip/net/download/yt-dlp/recipe.toml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/recipes/wip/finance/bitcoin/electrum/recipe.toml b/recipes/wip/finance/bitcoin/electrum/recipe.toml index cff7ca173..fe4aea576 100644 --- a/recipes/wip/finance/bitcoin/electrum/recipe.toml +++ b/recipes/wip/finance/bitcoin/electrum/recipe.toml @@ -7,5 +7,6 @@ script = """ mkdir -pv "${COOKBOOK_STAGE}"/usr/share/electrum mkdir -pv "${COOKBOOK_STAGE}"/usr/bin cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/electrum -echo "python3 /usr/share/electrum/run_electrum" > "${COOKBOOK_STAGE}"/usr/bin/electrum +echo "#!/usr/bin/env sh \n python3 /usr/share/electrum/run_electrum" > "${COOKBOOK_STAGE}"/usr/bin/electrum +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/electrum """ diff --git a/recipes/wip/games/rts/mindustry/recipe.toml b/recipes/wip/games/rts/mindustry/recipe.toml index a46e88634..aaf90c745 100644 --- a/recipes/wip/games/rts/mindustry/recipe.toml +++ b/recipes/wip/games/rts/mindustry/recipe.toml @@ -7,5 +7,6 @@ wget https://github.com/Anuken/Mindustry/releases/download/v146/Mindustry.jar mkdir -pv "${COOKBOOK_STAGE}"/usr/share/mindustry mkdir -pv "${COOKBOOK_STAGE}"/usr/bin cp -rv "${COOKBOOK_SOURCE}"/Mindustry.jar "${COOKBOOK_STAGE}"/usr/share/mindustry -echo "java -jar /usr/share/mindustry/Mindustry.jar" > "${COOKBOOK_STAGE}"/usr/bin/mindustry +echo "#!/usr/bin/env sh \n java -jar /usr/share/mindustry/Mindustry.jar" > "${COOKBOOK_STAGE}"/usr/bin/mindustry +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/mindustry """ diff --git a/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml b/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml index bc9025fde..17a33dc42 100644 --- a/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml +++ b/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml @@ -8,5 +8,6 @@ script = """ mkdir -pv "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli mkdir -pv "${COOKBOOK_STAGE}"/usr/bin cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli -echo "cd /usr/share/webtorrent-cli \n npm run" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli +echo "#!/usr/bin/env sh \n cd /usr/share/webtorrent-cli \n npm run" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli """ diff --git a/recipes/wip/net/download/yt-dlp/recipe.toml b/recipes/wip/net/download/yt-dlp/recipe.toml index 2a3ff062b..cdeeecf17 100644 --- a/recipes/wip/net/download/yt-dlp/recipe.toml +++ b/recipes/wip/net/download/yt-dlp/recipe.toml @@ -8,6 +8,7 @@ script = """ mkdir -pv "${COOKBOOK_STAGE}"/usr/share/yt-dlp mkdir -pv "${COOKBOOK_STAGE}"/usr/bin cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/yt-dlp -echo "/usr/share/yt-dlp/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp +echo "#!/usr/bin/env sh \n /usr/share/yt-dlp/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp chmod a+x "${COOKBOOK_STAGE}"/usr/share/yt-dlp/yt-dlp.sh +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp """ -- GitLab