-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bundle after the release action maybe?
- Loading branch information
1 parent
31ce99a
commit 8aea5a0
Showing
4 changed files
with
56 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ set -euo pipefail | |
IFS=$'\n\t' | ||
set -vx | ||
|
||
arch=$(dpkg-architecture -q DEB_BUILD_ARCH) | ||
version_num=$(git describe --tags --abbrev=0 | sed -E 's/v([0-9]+\.[0-9]+)/\1/') | ||
commit_count=$(git rev-list --count --first-parent HEAD) | ||
|
||
|
@@ -21,11 +22,15 @@ mkdir -p "$dst" | |
cat <<-EOF > "$debian/control" | ||
Package: $pkg | ||
Version: $version | ||
Architecture: amd64 | ||
Architecture: $arch | ||
Maintainer: Firas al-Khalil <[email protected]> | ||
Description: A bunch of tree-sitter parsers. | ||
EOF | ||
|
||
cp lib/libtree-sitter-*.so "$dst" | ||
for i in lib/*-"$PLATFORM"."$ext" | ||
do | ||
cp $i $(echo $i | sed -E "s/^(lib\/)(.*)-$PLATFORM(\.$ext)$/$dst\/\2\3/") | ||
done | ||
|
||
dpkg-deb --build "$pkg" "lib/$pkg.deb" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters