Create cross-platform build script
See original GitHub issueThe current build script (Scripts/buildpack.bat) only works on Windows, but not on MacOS.
In order to be able to build from the command line and create nuget packages also on MacOS, one could either:
- add a Mac-specific build script or
- create a cross-platform build script (maybe based on cake)
Option 2 is clearly preferable IMHO, but option 1 is still better than the current state of things.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
cross-platform scripting for windows, Linux, MacOS X [closed]
Batsh is a simple programming language that compiles to Bash and Windows Batch. It enables you to write your script once runs on...
Read more >Build A Cross Platform Shell Script CLI Runner | by Wade Huang
We came up an idea to create our own script runner that can execute bash script regardless the OS easily. The Idea. We...
Read more >How To Create Cross-Platform PowerShell Scripts
If the script is running on another platform, it displays a message indicating that the script only works on Windows systems. This script...
Read more >Run cross-platform scripts - Azure Pipelines
Run cross-platform tools with a script step ... The script keyword is a shortcut for the command line task. The script keyword runs...
Read more >Faster Multi-Platform Builds: Dockerfile Cross-Compilation ...
This way, you get an image that runs on the same machine you are working on. In order to build for a different...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I also consider dropping support for things that can not be build cross platform, or move them to a separate github repository.
What’s your argument against cake?
The problem with shell scripts is that they are not 100% portable. First of all the shell on Mac is not exactly the same as on Linux/WSL (zsh vs bash), and then there are issues like file paths etc. I don’t have too much experience with cake, but I think it helps to abstract away such differences, so that one can really have a single cross-platform build script.
I agree that it would make sense to use github actions for the CI builds. This also came to my mind, and it might help to work around #1115.