question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create cross-platform build script

See original GitHub issue

The 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:open
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pauldendulkcommented, Jul 18, 2021

I also consider dropping support for things that can not be build cross platform, or move them to a separate github repository.

0reactions
januswcommented, Jul 19, 2021

Not inclined to add Cake. Linux sh scripts are actually not that bad because they could also be built with WSL2 on Windows. I expect this to become a more common approach in general.

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.

Eventually I would like to use more github actions and also release nugets through github actions.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found