for windows
This commit is contained in:
parent
230dd30294
commit
75d6a558ad
20
.travis.yml
20
.travis.yml
|
@ -1,24 +1,26 @@
|
|||
sudo: true
|
||||
os: windows
|
||||
language: node_js
|
||||
node_js:
|
||||
- '9.9.0'
|
||||
script: node -v
|
||||
before_deploy:
|
||||
- sudo add-apt-repository ppa:ubuntu-wine/ppa -y
|
||||
- sudo apt-get update -q
|
||||
- sudo apt-get install -y wine1.8
|
||||
- cd app
|
||||
- npm install electron -g
|
||||
- npm install electron-builder -g
|
||||
- npm install
|
||||
- npm install --global windows-build-tools
|
||||
- npm install --save-dev electron-rebuild
|
||||
- ./node_modules/.bin/electron-rebuild
|
||||
- electron-builder --win --x64
|
||||
- cd build && mv "TheDesk *.*.* .exe" TheDesk.exe && mv "TheDesk Setup *.*.* .exe" TheDesk-setup.exe && cd ../
|
||||
- .\node_modules\.bin\electron-rebuild.cmd
|
||||
- electron-builder --win --ia32
|
||||
- cd build && mv "TheDesk *.*.* .exe" TheDesk-ia32.exe && mv "TheDesk Setup *.*.* .exe" TheDesk-setup-ia32.exe && cd ../
|
||||
- electron-builder --linux --x64
|
||||
- zip -j "build/linux-unpacked" "TheDesk-linux-x64.zip"
|
||||
- rename "build\TheDesk *.*.*.exe" TheDesk-ia32.exe
|
||||
- rename "build\TheDesk Setup *.*.*.exe" TheDesk-setup-ia32.exe
|
||||
- electron-builder --win --x64
|
||||
- rename "build\TheDesk *.*.*.exe" TheDesk.exe
|
||||
- rename "build\TheDesk Setup *.*.*.exe" TheDesk-setup.exe
|
||||
- electron-packager ./app TheDesk --executable-name="TheDesk" --app-copyright="Copyright (c) TheDesk 2018 Cutls.com 2015 All Right Reserved" --platform=linux --arch=x64,ia32 --electron-version=3.0.10 --overwrite
|
||||
- 7z a TheDesk-linux-x64.zip TheDesk-linux-x64
|
||||
- 7z a TheDesk-linux-ia32.zip TheDesk-linux-ia32
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
|
Loading…
Reference in New Issue
Block a user