not to ban for MS Store
This commit is contained in:
parent
a325c50f1f
commit
c1f7abac58
12
.travis.yml
12
.travis.yml
|
@ -15,6 +15,18 @@ before_deploy:
|
||||||
- cd app
|
- cd app
|
||||||
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
|
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
|
||||||
- yarn install --no-lockfile --prod
|
- yarn install --no-lockfile --prod
|
||||||
|
- yarn construct:store
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then cd ../build;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then mv *.dmg TheDesk-$VERSION-store.dmg;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never snap:x64;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../build;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then mv *.snap TheDesk-$VERSION-store.snap;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../app;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win --x64 -p never appx:x64;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv *.appx TheDesk-$VERSION-store.appx;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../app;else :;fi
|
||||||
- yarn construct
|
- yarn construct
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi
|
||||||
|
|
|
@ -8,14 +8,19 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"construct": "cd view/make && node make --automatic && cd ../../",
|
"construct": "cd view/make && node make --automatic && cd ../../",
|
||||||
|
"construct:store": "cd view/make && node make --automatic --store && cd ../../",
|
||||||
"dev": "npx electron ./ --dev",
|
"dev": "npx electron ./ --dev",
|
||||||
"dist": "build --linux snap",
|
"dist": "build --linux snap",
|
||||||
"watchview": "node view/make/make.js --automatic --watch",
|
"watchview": "node view/make/make.js --automatic --watch",
|
||||||
"build:js": "node build.js",
|
"build:js": "node build.js",
|
||||||
"build": "node view/make/make.js --automatic && npx electron-builder",
|
"build": "node view/make/make.js --automatic && npx electron-builder",
|
||||||
"build:all": "npx electron-builder --win --linux",
|
|
||||||
"build:win": "npx electron-builder --win",
|
|
||||||
"build:pwa": "node view/make/make.js --automatic --pwa",
|
"build:pwa": "node view/make/make.js --automatic --pwa",
|
||||||
|
"build:win:web": "node view/make/make.js --automatic && npx electron-builder --win",
|
||||||
|
"build:win:msstore": "node view/make/make.js --automatic --store && npx electron-builder --win appx",
|
||||||
|
"build:linux:web": "node view/make/make.js --automatic && npx electron-builder --linux",
|
||||||
|
"build:linux:snapstore": "node view/make/make.js --automatic --store && npx electron-builder --linux",
|
||||||
|
"build:mac:web": "node view/make/make.js --automatic && npx electron-builder --mac",
|
||||||
|
"build:mac:homebrew": "node view/make/make.js --automatic --store && npx electron-builder --mac",
|
||||||
"lint:fix": "eslint js --fix" ,
|
"lint:fix": "eslint js --fix" ,
|
||||||
"lint": "eslint js"
|
"lint": "eslint js"
|
||||||
},
|
},
|
||||||
|
@ -92,8 +97,8 @@
|
||||||
"icon": "build/thedesk.ico",
|
"icon": "build/thedesk.ico",
|
||||||
"target": [
|
"target": [
|
||||||
"nsis",
|
"nsis",
|
||||||
"portable",
|
"appx",
|
||||||
"appx"
|
"portable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"appx": {
|
"appx": {
|
||||||
|
@ -115,6 +120,7 @@
|
||||||
"icon": "build/icons",
|
"icon": "build/icons",
|
||||||
"target": [
|
"target": [
|
||||||
"zip",
|
"zip",
|
||||||
|
"appImage",
|
||||||
"snap",
|
"snap",
|
||||||
"deb"
|
"deb"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user