Add, Fix: percent, versioning, start
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"hardwareAcceleration": "Disable hardware acceleration",
|
||||
"hardwareAccelerationWarn": "Auto restarted",
|
||||
"theme": "Themes",
|
||||
"popup": "Popup notification(on Windows)",
|
||||
"popup": "Popup notification",
|
||||
"popupwarn": "Hide to set \"0\"",
|
||||
"s": "sec",
|
||||
"nativenotf": "Native notification",
|
||||
@@ -38,6 +38,7 @@
|
||||
"useragentWarn":"Restart when changed",
|
||||
"frame": "Window frame",
|
||||
"frameWarn": "If 'off', the window looks cool.",
|
||||
"downloadWin": "Versioning(o Windows downloader)",
|
||||
"absolute": "absolute value",
|
||||
"srcUrl": "Search engine",
|
||||
"srcUrlWarn": "{q} will be replaced to query.",
|
||||
|
@@ -37,6 +37,7 @@
|
||||
"useragentWarn":"再起動すんで。",
|
||||
"frame": "ウィンドウのフレーム",
|
||||
"frameWarn": "フレーム無しやとタイトルバーがシュッとするで。再起動すんで。",
|
||||
"downloadWin": "バージョニングする(Windowsのダウンローダ)",
|
||||
"absolute": "絶対指定",
|
||||
"srcUrl": "検索エンジン",
|
||||
"srcUrlWarn": "{q}が検索文字列になるで。",
|
||||
|
@@ -38,6 +38,7 @@
|
||||
"useragentWarn":"再起動します。",
|
||||
"frame": "ウィンドウのフレーム",
|
||||
"frameWarn": "フレーム無しだと、タイトルバーのデザインがクールになります。再起動します。",
|
||||
"downloadWin": "バージョニングする(Windowsのダウンローダ)",
|
||||
"absolute": "絶対指定",
|
||||
"srcUrl": "検索エンジン",
|
||||
"srcUrlWarn": "{q}が検索文字列に置換されます。",
|
||||
|
@@ -1,4 +1,4 @@
|
||||
let ver = '20.2.0 (Kawaii)'
|
||||
let ver = '20.2.1 (Kawaii)'
|
||||
if (process.argv.indexOf('--automatic') === -1) {
|
||||
let input = require('readline-sync').question('version string [empty: ' + ver + ' (default)]? ')
|
||||
if (input) {
|
||||
|
@@ -162,6 +162,16 @@ var envConstruction = [
|
||||
}
|
||||
]
|
||||
}
|
||||
},{
|
||||
id: 'download',
|
||||
storage: 'dl-win',
|
||||
checkbox: true,
|
||||
setValue: 'no',
|
||||
text: {
|
||||
head: '@@downloadWin@@',
|
||||
desc: 'ex: TheDesk-1.0.0-setup.exe',
|
||||
checkbox: yesno
|
||||
}
|
||||
}
|
||||
]
|
||||
var tlConstruction = [
|
||||
|
@@ -166,22 +166,42 @@
|
||||
if (sel == "install") {
|
||||
if (bit == "x64") {
|
||||
var url = json["winx64"];
|
||||
var file = "TheDesk-setup.exe";
|
||||
if(localStorage.getItem("dl-win") == "yes") {
|
||||
var file = "TheDesk-" + json.unique + "-setup.exe";
|
||||
} else {
|
||||
var file = "TheDesk-setup.exe";
|
||||
}
|
||||
} else if (bit == "ia32") {
|
||||
var url = json["winia32"];
|
||||
var file = "TheDesk-setup-ia32.exe";
|
||||
if(localStorage.getItem("dl-win") == "yes") {
|
||||
var file = "TheDesk-" + json.unique + "-setup-ia32.exe";
|
||||
} else {
|
||||
var file = "TheDesk-setup-ia32.exe";
|
||||
}
|
||||
}
|
||||
} else if (sel == "portable") {
|
||||
if (bit == "x64") {
|
||||
var url = json["winx64p"];
|
||||
var file = "TheDesk.exe";
|
||||
if(localStorage.getItem("dl-win") == "yes") {
|
||||
var file = "TheDesk-" + json.unique + ".exe";
|
||||
} else {
|
||||
var file = "TheDesk.exe";
|
||||
}
|
||||
} else if (bit == "ia32") {
|
||||
var url = json["winia32p"];
|
||||
var file = "TheDesk-ia32.exe";
|
||||
if(localStorage.getItem("dl-win") == "yes") {
|
||||
var file = "TheDesk-" + json.unique + "-ia32.exe";
|
||||
} else {
|
||||
var file = "TheDesk-ia32.exe";
|
||||
}
|
||||
}
|
||||
} else if (sel == "linux") {
|
||||
var url = json["linuxx64"];
|
||||
var file = "thedesk.zip";
|
||||
if(localStorage.getItem("dl-win") == "yes") {
|
||||
var file = "thedesk-" + json.unique_linux + ".zip";
|
||||
} else {
|
||||
var file = "thedesk.zip";
|
||||
}
|
||||
} else if (sel == "linuxdeb") {
|
||||
var url = json["linuxdeb"];
|
||||
var file = "thedesk_" + json.unique_linux + "_amd64.deb";
|
||||
@@ -199,9 +219,8 @@
|
||||
postMessage(["sendSinmpleIpc", "quit"], "*");
|
||||
}
|
||||
function updateProg(arg) {
|
||||
console.log(arg);
|
||||
$(".determinate").css("width", arg * 100 + "%");
|
||||
$("#prog").text(Math.floor(arg * 100) + "%");
|
||||
$(".determinate").css("width", arg.percent * 100 + "%");
|
||||
$("#prog").text(Math.floor(arg.percent * 100) + "%");
|
||||
}
|
||||
function updateMess(arg) {
|
||||
console.log(arg);
|
||||
|
Reference in New Issue
Block a user