Write a deployment packaging script #113

Merged
glen merged 8 commits from Vectornaut/dyna3:deployment-packaging into main 2025-08-11 03:33:21 +00:00
Showing only changes of commit ef9055e2b8 - Show all commits

View file

@ -75,7 +75,7 @@ The latest prototype is in the folder `app-proto`. It includes both a user inter
1. From the `app-proto` folder, call `trunk build --release` 1. From the `app-proto` folder, call `trunk build --release`
- Building in [release mode](https://doc.rust-lang.org/cargo/reference/profiles.html#release) produces an executable which is smaller and often much faster, but harder to debug and more time-consuming to build - Building in [release mode](https://doc.rust-lang.org/cargo/reference/profiles.html#release) produces an executable which is smaller and often much faster, but harder to debug and more time-consuming to build
- If you want to stay in the top-level folder, you can call `trunk serve --config app-proto --release` from there instead - If you want to stay in the top-level folder, you can call `trunk build --config app-proto --release` from there instead
glen marked this conversation as resolved Outdated

Should this be trunk build --config app-proto --release to be parallel with the main item, or do you need to use serve for some reason when you are working from the parent directory?

Should this be `trunk build --config app-proto --release` to be parallel with the main item, or do you need to use `serve` for some reason when you are working from the parent directory?

Yes, that should say build! Corrected in commit ef9055e.

Yes, that should say `build`! Corrected in commit ef9055e.
2. Use `sh` to run the packaging script `tools/package-for-deployment.sh`. 2. Use `sh` to run the packaging script `tools/package-for-deployment.sh`.
- The script is location-independent, so you can do this from anywhere in the dyna3 repository - The script is location-independent, so you can do this from anywhere in the dyna3 repository
- The call from the top level of the repository is: - The call from the top level of the repository is: