Is there a standard way to generate a release for a platform?
I want to use a my own fork of a platform in my code so need to a release on my fork. Is there a script to generate the tar.br files or do I need to create the archive manually?
roc build --bundle .tar.gz path/to/platform/main.roc
That will take the files in the folder (including and prebuilt host files) and make a roc package. You can then upload to any server and you have a package you can use from a URL.
In future we'd like to have the platform specify where the host files are, but for now they have fixed names based on arch-os like aarch64-macos.a
.
Thank you! Didn't spot the bundle flag, that worked perfectly
Here's my build script for basic-ssg https://github.com/lukewilliamboswell/basic-ssg/blob/main/build.roc
If you're just using a platform locally for testing, it's easier to use a relative path instead though.
I want to share the target application source so having a prebuilt platform makes that easier
jgresty has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC