0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-24 14:34:39 +03:00

Merge pull request #62 from ein-shved/nix-fix

Fix build with nix
This commit is contained in:
Andrey Onishchenko 2024-03-10 15:59:20 +03:00 committed by GitHub
commit 51a06feb51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View File

@ -85,7 +85,6 @@ jobs:
path: ./dist/release_notes.json path: ./dist/release_notes.json
nix-build: nix-build:
if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
NIXPKGS_ALLOW_UNFREE: 1 NIXPKGS_ALLOW_UNFREE: 1

View File

@ -14,13 +14,12 @@ usage() {
exe_location= exe_location=
dst="$PWD/app" dst="$PWD/app"
START_DIR="$PWD"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
nopatch=0 nopatch=0
while getopts :xo:ph name; do while getopts :xo:ph name; do
case $name in case $name in
x) extract_only=1 ;; x) extract_only=1 ;;
o) dst="$OPTARG" ;; o) dst="$(realpath "$OPTARG")" ;;
p) nopatch=1 ;; p) nopatch=1 ;;
h) h)
usage usage
@ -85,7 +84,7 @@ done
echo "Title Fixed" echo "Title Fixed"
echo "Replacing Icons" echo "Replacing Icons"
cp -af "$SCRIPT_DIR/icons/." "./build/next-desktop/" cp -drf "$SCRIPT_DIR/icons/." "./build/next-desktop/"
echo "Replaced Icons" echo "Replaced Icons"
# applying patches # applying patches
@ -121,8 +120,6 @@ if [ "$nopatch" != "1" ]; then
done done
fi fi
cd "$START_DIR" # fix relative path when using -o flag
mkdir -p "$dst" mkdir -p "$dst"
if [ -n "$extract_only" ]; then if [ -n "$extract_only" ]; then