forked from NyaomiDEV/Sunamu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.yml
145 lines (145 loc) · 4.39 KB
/
electron-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
appId: xyz.nyaomi.sunamu
productName: Sunamu
copyright: Copyright © 2021-2023 Naomi Calabretta
directories:
output: targets
files:
- "**/*"
- "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}"
- "!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}"
- "!**/node_modules/*.d.ts"
- "!**/node_modules/.bin"
- "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}"
- "!.editorconfig"
- "!**/._*"
- "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}"
- "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}"
- "!**/{appveyor.yml,.travis.yml,circle.yml}"
- "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}"
- "!src/*"
- "!.eslintrc.json"
- "!test.js"
- "!README.md"
- "!tsconfig.json"
- "!tsconfig.settings.json"
- "!assets/{preview*.png,kwin-widget-rule.kwinrule}"
- "!aur/*"
- "!.github/*"
- "!.vscode/*"
- "!.env"
- "!.nvmrc"
asar: true
asarUnpack:
- "./node_modules/sharp/vendor/**/*"
- "./node_modules/sharp/build/**/*"
- "./node_modules/register-scheme/build/**/*"
# Linux specific
- "./node_modules/abstract-socket/build/**/*"
# Windows specific
- "./node_modules/windowtoolbox/build/**/*"
- "./node_modules/winplayer-node/build/**/*"
linux:
target:
- AppImage
maintainer: Naomi Calabretta
vendor: Naomi Calabretta
executableName: Sunamu
icon: assets/icons
synopsis: Beautiful app to show which music you are playing
description: Show your currently playing song in a stylish way!
category: Multimedia
desktop: Sunamu
publish:
- github
deb:
depends:
- libgtk-3-0
- libnotify4
- libxss1
- libxtst6
- libnss3
- libatspi2.0-0
- libuuid1
- libvips
rpm:
depends:
- /bin/sh
- gtk3
- libnotify
- libXScrnSaver
- libXtst
- nss
- at-spi2-core
- libuuid
- vips
fpm: ["--rpm-rpmbuild-define=_build_id_links none"]
pacman:
depends:
- gtk3
- nss
- libvips
- c-ares
- libxslt
- libevent
- minizip
- re2
- snappy
flatpak:
license: "LICENSE"
runtime: "org.freedesktop.Platform"
runtimeVersion: "22.08"
sdk: "org.freedesktop.Sdk"
base: "org.electronjs.Electron2.BaseApp"
baseVersion: "22.08"
branch: "master"
useWaylandFlags: false # Configurable in Sunamu Config
finishArgs:
# Wayland/X11 Rendering
- "--socket=wayland"
- "--socket=x11"
- "--share=ipc"
# OpenGL
- "--device=dri"
# Directory access
# Discord IPC
- "--filesystem=xdg-run/discord-ipc-0"
- "--filesystem=xdg-run/discord-ipc-1"
- "--filesystem=xdg-run/discord-ipc-2"
- "--filesystem=xdg-run/discord-ipc-3"
- "--filesystem=xdg-run/discord-ipc-4"
- "--filesystem=xdg-run/discord-ipc-5"
- "--filesystem=xdg-run/discord-ipc-6"
- "--filesystem=xdg-run/discord-ipc-7"
- "--filesystem=xdg-run/discord-ipc-8"
- "--filesystem=xdg-run/discord-ipc-9"
# Discord IPC but Flatpak
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-0"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-1"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-2"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-3"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-4"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-5"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-6"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-7"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-8"
- "--filesystem=xdg-run/app/com.discordapp.Discord/discord-ipc-9"
# Cover art locations for Clementine, Strawberry, etc.
- "--filesystem=/tmp:ro"
# Cover art locations for VLC media player, Lollypop, etc.
- "--filesystem=xdg-cache:ro"
# Cover art locations for Clementine, Strawberry, etc. on Flatpak
- "--filesystem=xdg-run/app:ro"
# Cover art locations for GNOME Music on Flatpak, and possibly more
- "--filesystem=~/.var/app:ro"
# Restore RW for sunamu's Flatpak folders
- "--filesystem=xdg-run/app/xyz.nyaomi.sunamu"
- "--filesystem=~/.var/app/xyz.nyaomi.sunamu"
# Allow communication with network
- "--share=network"
# Talk to media players
- "--talk-name=org.mpris.MediaPlayer2.*"
win:
target:
- nsis
icon: assets/icons/icon.ico
legalTrademarks: Copyright © 2021-2023 Naomi Calabretta