mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Migrate to yarn to install packages without package.json (but keep npm rebuild)
This commit is contained in:
@ -31,9 +31,9 @@ script:
|
|||||||
-v ~/.cache/electron:/root/.cache/electron \
|
-v ~/.cache/electron:/root/.cache/electron \
|
||||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||||
electronuserland/builder \
|
electronuserland/builder \
|
||||||
/bin/bash -c "npm install && npm run release:linux"
|
/bin/bash -c "yarn && yarn run release:linux"
|
||||||
else
|
else
|
||||||
npm run release:mac
|
yarn run release:mac
|
||||||
fi
|
fi
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -rf $HOME/.cache/electron-builder
|
- rm -rf $HOME/.cache/electron-builder
|
||||||
|
|||||||
@ -12,9 +12,9 @@ init:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: Install-Product node 8 x64
|
- ps: Install-Product node 8 x64
|
||||||
- npm install
|
- yarn
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- npm run release:win
|
- yarn run release:win
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
|||||||
7301
package-lock.json
generated
7301
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -29,14 +29,17 @@
|
|||||||
"test": "xo",
|
"test": "xo",
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
|
||||||
"postinstall": "npm run icon && npm rebuild && node plugins/adblocker/generator.js && electron-rebuild",
|
"postinstall": "yarn run icon && npm rebuild && node plugins/adblocker/generator.js && electron-rebuild",
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
"build": "npm run clean && build --win --mac --linux",
|
"build": "yarn run clean && build --win --mac --linux",
|
||||||
"build:mac": "npm run clean && build --mac",
|
"build:mac": "yarn run clean && build --mac",
|
||||||
"build:win": "npm run clean && build --win",
|
"build:win": "yarn run clean && build --win",
|
||||||
"release:linux": "npm run clean && build --linux -p always",
|
"release:linux": "yarn run clean && build --linux -p always",
|
||||||
"release:mac": "npm run clean && build --mac -p always",
|
"release:mac": "yarn run clean && build --mac -p always",
|
||||||
"release:win": "npm run clean && build --win -p always"
|
"release:win": "yarn run clean && build --win -p always"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm": "Please use yarn and not npm"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ad-block": "^4.1.3",
|
"ad-block": "^4.1.3",
|
||||||
|
|||||||
@ -29,8 +29,8 @@ You can check out the [latest release](https://github.com/th-ch/youtube-music/re
|
|||||||
```sh
|
```sh
|
||||||
git clone https://github.com/th-ch/youtube-music
|
git clone https://github.com/th-ch/youtube-music
|
||||||
cd youtube-music
|
cd youtube-music
|
||||||
npm install
|
yarn
|
||||||
npm start
|
yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build your own plugins
|
## Build your own plugins
|
||||||
@ -90,7 +90,7 @@ module.exports = () => {
|
|||||||
## Build
|
## Build
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm run build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Builds the app for macOS, Linux, and Windows, using [electron-builder](https://github.com/electron-userland/electron-builder).
|
Builds the app for macOS, Linux, and Windows, using [electron-builder](https://github.com/electron-userland/electron-builder).
|
||||||
|
|||||||
Reference in New Issue
Block a user