mirror of https://github.com/Kylart/KawAnime.git
Fix #67: Now adds the possibility to have a portable windows version
This commit is contained in:
parent
c1cf0c9f23
commit
07dab9f4ec
|
@ -127,6 +127,10 @@ npm run dist:linux
|
|||
#### For Windows OS only
|
||||
```
|
||||
npm run dist:win
|
||||
|
||||
# Or, to have a portable version. This will give you a `KawAnime.exe`
|
||||
# file that you can move around, e.g. on a USB key
|
||||
npm run dist:portable
|
||||
```
|
||||
|
||||
Distributable will then be in the `dist` folder.
|
||||
|
|
|
@ -46,4 +46,4 @@ test_script:
|
|||
- npm run test
|
||||
|
||||
deploy_script:
|
||||
- IF [%APPVEYOR_REPO_BRANCH%]==[master] npm run publish:win
|
||||
- IF [%APPVEYOR_REPO_BRANCH%]==[master] npm run publish:win && npm run publish:portable
|
|
@ -19,10 +19,12 @@
|
|||
"dist": "npm run dist:mac && npm run dist:win && npm run dist:linux",
|
||||
"dist:mac": "npm run build -- --mac",
|
||||
"dist:win": "npm run build -- --win --x64 --ia32",
|
||||
"dist:portable": "npm run build -- --win portable",
|
||||
"dist:linux": "npm run build -- --linux deb AppImage",
|
||||
"publish:mac": "npm run build -- --mac -p always",
|
||||
"publish:linux": "npm run build -- --linux deb AppImage -p always",
|
||||
"publish:win": "npm run build -- --win --x64 --ia32 -p always",
|
||||
"publish:portable": "npm run build -- --win portable -p always",
|
||||
"lint": "vue-cli-service lint",
|
||||
"compile:bindings": "cmake-js compile -d bindings -O bindings/build",
|
||||
"install:deps": "bash bindings/scripts/install.sh",
|
||||
|
|
|
@ -2,5 +2,5 @@ import { app } from 'electron'
|
|||
import { join } from 'path'
|
||||
|
||||
export default process.env.IS_TEST !== 'true'
|
||||
? join(app.getPath('userData'), 'appFiles')
|
||||
? join(process.env.PORTABLE_EXECUTABLE_DIR || app.getPath('userData'), 'appFiles')
|
||||
: join(app.getPath('home'), '.KawAnime-test')
|
||||
|
|
Loading…
Reference in New Issue