Merge pull request #53 from kPherox/update-package

Update package
This commit is contained in:
Cutls 2019-04-14 00:36:19 +09:00 committed by GitHub
commit 2e1c076b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1067 additions and 700 deletions

View File

@ -73,15 +73,34 @@ iTunes NowPlayingにアルバムアートワークを付けてくれた人
## Build/ビルド
Misskey(misskey.xyz) application token is not in cutls/TheDesk
Misskey(misskey.xyz)のトークンは含まれておりません。
`git clone https://github.com/cutls/TheDesk`
`npm install electron -g`
`cd TheDesk/app`
`npm install`
Misskey(misskey.xyz)のトークンは含まれておりません。
```sh
git clone https://github.com/cutls/TheDesk
cd TheDesk/app
npm install
npm install --only=dev
```
### electron-builder(推奨)
`electron-builder --target`
`target`は`win`か`linux`か`mac`を指定してください。
Use npm scripts.
npm scriptsを利用します
```sh
# Build for current platform
# 実行している環境向けにビルド
npm run build
# Select build target
# ターゲットを指定してビルド
## Windows
npm run build:win
## Windows and Linux (The macOS target should run on macOS. So, this option hasn't include the build for macOS)
## macOS向けのビルドにはmacOSで実行する必要があるためこのコマンドではビルドされません
npm run build:all
```
Config is all on package.json
ビルド設定はすべてpackage.jsonに記載しています。

1730
app/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dist": "build --linux snap",
"build": "electron-builder",
"build:all": "electron-builder --win --linux",
"build:win": "electron-builder --win"
},
@ -98,7 +99,6 @@
},
"devDependencies": {
"electron": "^4.1.4",
"electron-packager": "^13.1.1",
"electron-rebuild": "^1.8.4"
"electron-builder": "^20.39.0"
}
}