-
Notifications
You must be signed in to change notification settings - Fork 0
Build and Release
mitty1293 edited this page May 31, 2024
·
2 revisions
First, build the binary file using the following command:
cargo build --release
This will generate the binary file in the ./target/release/ directory.
Create a temporary directory to organize the files before creating the ZIP file. This step ensures that the ZIP file structure is clean and includes all necessary files.
mkdir -p /tmp/obo_release
Copy the built binary and the LICENSE file to the temporary directory.
cp target/release/obo /tmp/obo_release/
cp LICENSE /tmp/obo_release/
Create a ZIP file with the version number included in the filename.
For example, if the version is v1.0.0, use the following command to create the ZIP file:
cd /tmp/obo_release
zip obo_v1.0.0.zip obo LICENSE
Upload the release build binary to the GitHub Releases page to make it easy for users to download:
- Go to the GitHub repository page.
- Click on the
Releases
section on the right. - Click on
Draft a new release
. - Enter the version number and release notes.
- Drag and drop the
obo_v1.0.0.zip
file you created into the Attach binaries section. - Click Publish release.