Skip to content

Commit afd7a90

Browse files
authored
msix 支持 args (#37)
1 parent 3933f26 commit afd7a90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/app_auto_launcher_impl_windows.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class AppAutoLauncherImplWindowsMsix extends AppAutoLauncher {
123123
\$WScriptShell = New-Object -ComObject WScript.Shell
124124
\$Shortcut = \$WScriptShell.CreateShortcut(\$ShortcutFile)
125125
\$Shortcut.TargetPath = \$TargetPath
126+
\$Shortcut.Arguments = "${args.join(' ')}"
126127
\$Shortcut.Save()
127128
''';
128129
final result = Process.runSync('powershell', ['-Command', script]);

0 commit comments

Comments
 (0)