zeroc-ice / vscode-slice

Slice syntax highlighter for Visual Studio Code
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Make the Packaging Script Cross-Platform #52

Closed InsertCreativityHere closed 5 months ago

InsertCreativityHere commented 5 months ago

Some time ago I opened #32, because the scripts and actions didn't work on Windows. This PR updates the scripts to be cross-platform... which really only requires one change.

Part of the process is making the 'slice' directory read-only, and the script did this with chmod. This command doesn't exist on Windows.

So, like any good javascript developer, I added a dependency which allows our build scripts to run OS-dependent paths. For *nix platforms, the code is the same, but now for Windows, we use the 'equivalent' command: attrib.