mirror of
https://github.com/aunetx/deezer-linux.git
synced 2025-07-21 04:34:44 +02:00
Update makefile
This commit is contained in:
parent
4c32d0170e
commit
77730bae29
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,14 +1,13 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.flatpak-builder
|
.flatpak-builder
|
||||||
build
|
build
|
||||||
/dist
|
repo
|
||||||
|
generated-sources.json
|
||||||
source
|
source
|
||||||
app
|
app
|
||||||
extra
|
|
||||||
app-32.7z
|
app-32.7z
|
||||||
deezer-*.exe
|
deezer-*.exe
|
||||||
package-lock.json
|
package-lock.json
|
||||||
package.json
|
package.json
|
||||||
app.7z
|
app.7z
|
||||||
repo
|
|
||||||
*.AppImage
|
*.AppImage
|
15
Makefile
15
Makefile
@ -62,16 +62,13 @@ prepare: install_build_deps
|
|||||||
# Extract app sources from the app
|
# Extract app sources from the app
|
||||||
asar extract source/resources/app.asar app
|
asar extract source/resources/app.asar app
|
||||||
|
|
||||||
# Add extra resources to be used at runtime
|
|
||||||
mkdir -p extra/linux
|
|
||||||
cp source/resources/win/systray.png extra/linux/
|
|
||||||
|
|
||||||
# Prettier the sources to patch successfully
|
# Prettier the sources to patch successfully
|
||||||
prettier --write "app/build/*.js"
|
prettier --write "app/build/*.js"
|
||||||
# Patch hide to tray (https://github.com/SibrenVasse/deezer/issues/4)
|
|
||||||
patch -p1 -dapp < quit.patch
|
# Apply patches from ./patches, default ones:
|
||||||
# Add start in tray cli option (https://github.com/SibrenVasse/deezer/pull/12)
|
# Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)
|
||||||
patch -p1 -dapp < start-hidden-in-tray.patch
|
# Start in tray cli option (https://github.com/SibrenVasse/deezer/pull/12)
|
||||||
|
$(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);)
|
||||||
|
|
||||||
# Append `pkg_json_append` to the `package.json` of the app
|
# Append `pkg_json_append` to the `package.json` of the app
|
||||||
# Adds electron, elecron-builder dependencies, and build directives
|
# Adds electron, elecron-builder dependencies, and build directives
|
||||||
@ -110,4 +107,4 @@ run_flatpak:
|
|||||||
flatpak run dev.aunetx.deezer
|
flatpak run dev.aunetx.deezer
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf app extra flatpak/{.flatpak-builder,build} node_modules source app-32.7z app.7z deezer-*.exe package-lock.json
|
rm -rf app flatpak/{.flatpak-builder,build} node_modules source app-32.7z app.7z deezer-*.exe package-lock.json
|
BIN
extra/linux/systray.png
Normal file
BIN
extra/linux/systray.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
x
Reference in New Issue
Block a user