raven/multimedia/yaamp/yaamp-build-fixes.patch
2024-02-27 15:54:20 +06:00

40 lines
1.7 KiB
Diff

diff -Naur a/package.json b/package.json
--- a/package.json 2024-01-29 22:04:04.000000000 +0600
+++ b/package.json 2024-02-27 13:27:32.434079494 +0600
@@ -7,19 +7,19 @@
"main": false
},
"scripts": {
- "copy": "xcopy bundled dist /e /Y && xcopy res dist /e /Y",
- "clean": "rmdir /s /q node_modules && del /f yarn.lock && yarn cache clean && yarn install",
+ "copy": "cp -rf bundled dist && cp -rf res dist",
+ "clean": "rm -rf node_modules && rm -f yarn.lock && yarn cache clean && yarn install",
"build": "yarn run copy && yarn build:src",
"build:src": "npx parcel build --public-url ./ ./src/index.html",
"watch": "npx parcel watch --public-url ./ --hmr-hostname 127.0.0.1 --hmr-port 54439 ./src/index.html",
"test": "jest",
"electron": "./node_modules/.bin/electron .",
"start": "yarn run build && electron .",
- "pack:win": "electron-builder build -w --x64",
- "pack:linux": "electron-builder build -l --x64",
- "pack:mac": "electron-builder build -m --x64",
+ "pack:win": "./node_modules/electron-builder/cli.js build -w --x64",
+ "pack:linux": "./node_modules/electron-builder/cli.js build -l --x64",
+ "pack:mac": "./node_modules/electron-builder/cli.js build -m --x64",
"pack": "yarn run pack:win && yarn run pack:linux && yarn run pack:mac",
- "dist": "yarn run build && build --x64"
+ "dist": "yarn run build && ./node_modules/electron-builder/cli.js build --x64"
},
"homepage": "https://yaamp.ru",
"repository": "https://github.com/umnik1/yaamp",
@@ -84,8 +84,7 @@
},
"linux": {
"target": [
- "AppImage",
- "deb"
+ "default"
],
"category": "AudioVideo"
},