When downloading a file that already exists, browsers generally name the second version of the file something like "$file(1).exe". This causes warp-runner to fail to run.
To reproduce
Create a app folder
Create a launch.cmd script inside that folder with the only contents being echo "app ran!"
In my case, I only have a launch.cmd so that I could set an environment variable before my app ran.
However, I was able to move that env-var-setting to the very beginning of my executable, at which point I was able to bypass running cmd /c.
When downloading a file that already exists, browsers generally name the second version of the file something like
"$file(1).exe"
. This causeswarp-runner
to fail to run.To reproduce
app
folderlaunch.cmd
script inside that folder with the only contents beingecho "app ran!"
warp-packer --arch windows-x64 --input_dir app --exec launch.cmd --output "app(1).exe"
"app(1).exe"
SET WARP_TRACE=1
"app(1).exe"
Cause
cmd /c %path%
(as used here) doesn't play nice with special characters.Workaround
In my case, I only have a
launch.cmd
so that I could set an environment variable before my app ran. However, I was able to move that env-var-setting to the very beginning of my executable, at which point I was able to bypass runningcmd /c
.