Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 4, 2024
1 parent a4bed1c commit ec16cdd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/scripts/aarch64-Linux/pkgs/obs-studio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@ if [ "${SKIP_BUILD}" == "NO" ]; then
export APP="obs"
export NIX_PKGNAME="obs-studio"
export PKG_NAME="${NIX_PKGNAME}.NixAppImage"
nix bundle --bundler "github:ralismark/nix-appimage" "nixpkgs#${NIX_PKGNAME}" --log-format bar-with-logs
#nix bundle --bundler "github:ralismark/nix-appimage" "nixpkgs#${NIX_PKGNAME}" --log-format bar-with-logs
pushd "/opt/nixpkgs" >/dev/null 2>&1 && git reset --hard "origin/master" && popd >/dev/null 2>&1
PKG_NIX_DIR="$(find "/opt/nixpkgs/pkgs" -type d -name "${NIX_PKGNAME}" -print -quit | xargs realpath)" && export PKG_NIX_DIR="${PKG_NIX_DIR}"
PKG_NIX_TMP="$(find "${PKG_NIX_DIR}" -maxdepth 1 -type f -name "*.nix" | head -n 1)" && export PKG_NIX_TMP="${PKG_NIX_TMP}"
pushd "${PKG_NIX_DIR}" >/dev/null 2>&1
curl -qfsSL "https://raw.githubusercontent.com/Azathothas/Toolpacks-Extras/refs/heads/main/.github/assets/nix-flakes/numtide_nix-gl-host.nix" -o "${PKG_NIX_DIR}/flake.nix"
sed "s/PKG_NAME/${NIX_PKGNAME}/g" -i "${PKG_NIX_DIR}/flake.nix"
sed "s/PKG_ARCH/$(uname -m)/g" -i "${PKG_NIX_DIR}/flake.nix"
git add "${PKG_NIX_DIR}/"* >/dev/null 2>&1 && git commit -m "[+] NixAppImage ${NIX_PKGNAME}" >/dev/null 2>&1
git stash ; nix flake update ; popd >/dev/null 2>&1
nix bundle --bundler "github:ralismark/nix-appimage" "${PKG_NIX_DIR}" -o "${OWD}/${APP}.AppImage" --log-format bar-with-logs
pushd "/opt/nixpkgs" >/dev/null 2>&1 && git reset --hard "origin/master" && popd >/dev/null 2>&1
unset PKG_NIX_DIR PKG_NIX_TMP
#Copy
sudo rsync -achL "${OWD}/${APP}.AppImage" "${OWD}/${PKG_NAME}.tmp"
sudo chown -R "$(whoami):$(whoami)" "${OWD}/${PKG_NAME}.tmp" && chmod -R 755 "${OWD}/${PKG_NAME}.tmp"
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/aarch64-Linux/pkgs/olive-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if [ "${SKIP_BUILD}" == "NO" ]; then
unset APPIMAGE APPIMAGE_EXTRACT NIX_PKGNAME OFFSET OWD PKG_NAME RELEASE_TAG SHARE_DIR
fi
#-------------------------------------------------------#
export BUILD_NIX_APPIMAGE="YES"
export BUILD_NIX_APPIMAGE="NO" #gl Issues
if [ "${BUILD_NIX_APPIMAGE}" == "YES" ]; then
##Create NixAppImage
pushd "$($TMPDIRS)" >/dev/null 2>&1
Expand Down

0 comments on commit ec16cdd

Please sign in to comment.