diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64cb5a79..5c4e681e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: artifacts-plan-dist-manifest - path: plan-dist-manifest.json + path: | + plan-dist-manifest.json + amber_*.deb # Build and packages all the platform-specific things build-local-artifacts: @@ -174,7 +176,10 @@ jobs: pattern: artifacts-* path: target/distrib/ merge-multiple: true - + - name: Cargo Deb + run: | + cargo install cargo-deb + cargo deb --output="./target/distrib" - name: Compile installer/uninstaller run: | TARGET_TRIPLE="$(rustc -Vv | awk '/^host/ { print $2 }')" @@ -192,6 +197,8 @@ jobs: # Parse out what we just built and upload it to scratch storage echo "paths<> "$GITHUB_OUTPUT" jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT" + AMBER_VERSION=$($AMBER --version) + echo "$PWD/target/distrib/amber_${AMBER_VERSION}-1_amd64.sh" >> "$GITHUB_OUTPUT" echo "$PWD/target/distrib/install.sh" >> "$GITHUB_OUTPUT" echo "$PWD/target/distrib/uninstall.sh" >> "$GITHUB_OUTPUT" echo "EOF" >> "$GITHUB_OUTPUT" diff --git a/Cargo.toml b/Cargo.toml index d797237c..1f731e01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,16 @@ name = "amber" version = "0.3.5-alpha" edition = "2021" -repository = "https://github.com/Ph0enixKM/Amber" +repository = "https://github.com/amber-lang/Amber" +homepage = "https://amber-lang.com/" +description = "The Programming Language compiled to Bash." rust-version = "1.79" +[package.metadata.deb] +maintainer = "Amber-Lang project" +license-file = "LICENSE.md" +copyright = "GPLv3" + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]