mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
build: remove old tooling
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
FOLDER=lib
|
|
||||||
|
|
||||||
rm -rf lib/
|
|
||||||
git clone https://github.com/afkarxyz/SpotiFLAC.git
|
|
||||||
cp -r SpotiFLAC/backend/ lib/
|
|
||||||
mkdir -p app/
|
|
||||||
cp SpotiFLAC/app.go app/app.go
|
|
||||||
rm -rf SpotiFLAC
|
|
||||||
|
|
||||||
sed -i "s/package main/package app/g" app/app.go
|
|
||||||
sed -i "s/\"spotiflac\/backend\"/backend \"github.com\/Superredstone\/spotiflac-cli\/lib\"/g" app/app.go
|
|
||||||
|
|
||||||
# Nix shenanigans
|
|
||||||
chmod -R 777 lib
|
|
||||||
|
|
||||||
for i in $(ls lib/); do
|
|
||||||
sed -i "s/package backend/package $FOLDER/g" $FOLDER/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user