You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent quite some time this morning figuring this out as it wasn't obvious from the docs or examples. It may be obvious for a Javascript developer that knows how this works:
// Node program to demonstrate the // URL.fileURLToPath() API as Setter // Importing the module 'url' consturl=require('url');// Some random path from system constfile='file:///C:/path/example/gfg'// Converting the file to properly encoded path console.log(url.fileURLToPath(file))
I can also probably remove the full path, but the key things are 1) use forward slashes, even if you are on windows and 2) use three forward slashes after file:.
It could be helpful to give an example of this in the docs of this repo. Thanks for the action!
The text was updated successfully, but these errors were encountered:
moorepants
changed the title
Bit hard to figure out what to type for a local file on windows in Installer-Url
Bit hard to figure out what to type for a local file on windows in installer-url
Apr 6, 2024
I spent quite some time this morning figuring this out as it wasn't obvious from the docs or examples. It may be obvious for a Javascript developer that knows how this works:
which returns:
taken from: https://www.geeksforgeeks.org/node-js-url-fileurltopath-api/
I finally got a local exe to build on a Github action with:
I can also probably remove the full path, but the key things are 1) use forward slashes, even if you are on windows and 2) use three forward slashes after
file:
.It could be helpful to give an example of this in the docs of this repo. Thanks for the action!
The text was updated successfully, but these errors were encountered: