for windows

This commit is contained in:
cutls 2019-01-27 23:53:33 +09:00
parent 230dd30294
commit 75d6a558ad

View File

@ -1,24 +1,26 @@
sudo: true os: windows
language: node_js language: node_js
node_js: node_js:
- '9.9.0' - '9.9.0'
script: node -v script: node -v
before_deploy: 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 - cd app
- npm install electron -g - npm install electron -g
- npm install electron-builder -g - npm install electron-builder -g
- npm install - npm install
- npm install --global windows-build-tools
- npm install --save-dev electron-rebuild - npm install --save-dev electron-rebuild
- ./node_modules/.bin/electron-rebuild - ./node_modules/.bin/electron-rebuild
- electron-builder --win --x64 - .\node_modules\.bin\electron-rebuild.cmd
- cd build && mv "TheDesk *.*.* .exe" TheDesk.exe && mv "TheDesk Setup *.*.* .exe" TheDesk-setup.exe && cd ../
- electron-builder --win --ia32 - electron-builder --win --ia32
- cd build && mv "TheDesk *.*.* .exe" TheDesk-ia32.exe && mv "TheDesk Setup *.*.* .exe" TheDesk-setup-ia32.exe && cd ../ - rename "build\TheDesk *.*.*.exe" TheDesk-ia32.exe
- electron-builder --linux --x64 - rename "build\TheDesk Setup *.*.*.exe" TheDesk-setup-ia32.exe
- zip -j "build/linux-unpacked" "TheDesk-linux-x64.zip" - 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: deploy:
provider: releases provider: releases
api_key: api_key: