Skip to content

Commit

Permalink
bugfix: nightly draft workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed May 12, 2023
1 parent 6ac7d9e commit c5ca27c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ cargo build --release --target x86_64-unknown-linux-musl

# Pack the binary to reduce size
upx --best --lzma ./target/x86_64-unknown-linux-musl/release/${pkg_name}

# Copy binary
cp ./target/x86_64-unknown-linux-musl/release/${pkg_name} "${release_path}"/usr/local/bin
# Generate DEBIAN controll
cat > "${release_path}"/DEBIAN/control <<- EOM
Package: ${pkg_name}
Version: ${version}
Architecture: ${arch}
Maintainer: Next Hat [email protected]
Description: Convert docker-compose.yaml to Nanocl StateFile.yml
EOM

mkdir -p ./target/debian
dpkg-deb --build --root-owner-group "${release_path}" ./target/debian/${pkg_name}_"${version}"_"${arch}".deb

0 comments on commit c5ca27c

Please sign in to comment.