From 75d6a558adabcb4fbaa680e45d5ad624daea27e9 Mon Sep 17 00:00:00 2001 From: cutls Date: Sun, 27 Jan 2019 23:53:33 +0900 Subject: [PATCH] for windows --- .travis.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95dac2ab..9e339fbb 100644 --- a/.travis.yml +++ b/.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: