Stream: beginners

Topic: ✔ Generating release for platform


view this post on Zulip jgresty (Oct 17 2024 at 22:13):

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?

view this post on Zulip Luke Boswell (Oct 17 2024 at 22:16):

roc build --bundle .tar.gz path/to/platform/main.roc

view this post on Zulip Luke Boswell (Oct 17 2024 at 22:18):

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.

view this post on Zulip Luke Boswell (Oct 17 2024 at 22:19):

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.

view this post on Zulip jgresty (Oct 17 2024 at 22:19):

Thank you! Didn't spot the bundle flag, that worked perfectly

view this post on Zulip Luke Boswell (Oct 17 2024 at 22:21):

Here's my build script for basic-ssg https://github.com/lukewilliamboswell/basic-ssg/blob/main/build.roc

view this post on Zulip Luke Boswell (Oct 17 2024 at 22:22):

If you're just using a platform locally for testing, it's easier to use a relative path instead though.

view this post on Zulip jgresty (Oct 17 2024 at 22:23):

I want to share the target application source so having a prebuilt platform makes that easier

view this post on Zulip Notification Bot (Oct 17 2024 at 22:30):

jgresty has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC