Add files via upload

This commit is contained in:
Namhyeon Go 2021-08-11 03:03:57 +09:00 committed by GitHub
parent 029a4f785b
commit 05917cbb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -116,7 +116,7 @@ var ChromeObject = function() {
var cmd = [ var cmd = [
"cscript", "cscript",
"app.js", "app.js",
"shoutcut", "shoutcut.legacy",
"chrome", "chrome",
this.installedDir, this.installedDir,
]; ];
@ -141,7 +141,7 @@ var ChromeObject = function() {
cmd.push("--user-data-dir=\"" + this.userDataDir + "\""); cmd.push("--user-data-dir=\"" + this.userDataDir + "\"");
cmd.push("\"" + url + "\""); cmd.push("\"" + url + "\"");
SHELL.createDesktopIcon("Chrome Prototype (" + this.installedDir + ")", cmd.join(' '), SYS.getCurrentScriptDirectory()); SHELL.createShoutcut("Chrome Prototype (" + this.installedDir + ")", cmd.join(' '), SYS.getCurrentScriptDirectory());
}; };
this.setInPrivate = function(flag) { this.setInPrivate = function(flag) {

View File

@ -119,9 +119,9 @@ var ShellObject = function() {
return oShell; return oShell;
}; };
this.createDesktopIcon = function(shoutcutname, cmd, workingDirectory) { this.createShoutcut = function(shoutcutName, cmd, workingDirectory) {
var desktopPath = this.interface.SpecialFolders("Desktop"); var desktopPath = this.interface.SpecialFolders("Desktop");
var path = desktopPath + "\\" + shoutcutname + ".lnk"; var path = desktopPath + "\\" + shoutcutName + ".lnk";
if (!FILE.fileExists(path)) { if (!FILE.fileExists(path)) {
var link = this.interface.CreateShortcut(path); var link = this.interface.CreateShortcut(path);
@ -129,6 +129,7 @@ var ShellObject = function() {
//link.Arguments = "/q /c " + this.build(cmd); //link.Arguments = "/q /c " + this.build(cmd);
link.TargetPath = "wscript"; link.TargetPath = "wscript";
link.Arguments = "bgloader.js " + this.build(cmd); link.Arguments = "bgloader.js " + this.build(cmd);
//link.Arguments = this.build(cmd);
link.WindowStyle = 1; link.WindowStyle = 1;
link.WorkingDirectory = workingDirectory; link.WorkingDirectory = workingDirectory;
//link.Hotkey = ""; //link.Hotkey = "";