travis win

This commit is contained in:
Cutls 2019-05-26 22:40:37 +09:00
parent 8c8cf44ed6
commit 225786e07f
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
os:
- osx
- linux
# - osx
# - linux
- windows
language: node_js
node_js:
@ -25,5 +25,5 @@ deploy:
skip_cleanup: true
on:
repo: cutls/TheDesk
tags: false
tags: true
all_branches: true

View File

@ -77,7 +77,9 @@ builder.build({
config: pref
})
.then(() => {
console.log("Done on "+os)
if (os == "win32") {
console.log("Windows")
fs.renameSync('../build/TheDesk ' + version + '.exe', '../build/TheDesk-ia32.exe');
fs.renameSync('../build/TheDesk Setup ' + version + '.exe', '../build/TheDesk-setup-ia32.exe');
retry()
@ -87,6 +89,7 @@ builder.build({
// handle error
})
function retry(){
console.log("Windows x64")
const targetsAlt = new Map();
const archToTypeAlt = new Map();
targetsAlt.set(Platform.WINDOWS, archToTypeAlt);