Skip to content

Commit ef9949a

Browse files
Add update-apt
1 parent 82e9a93 commit ef9949a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
PREVIOUS_VERSION=1.8.1
12
VERSION=1.9.0
23

34
FILES=libtorch_$(VERSION)+cpu-1_amd64.deb \
@@ -84,3 +85,12 @@ libtorch-$(VERSION)+cu111-1.x86_64.rpm:libtorch-$(VERSION)+cu111.tgz
8485
fakeroot alien --to-rpm --bump=0 --version=$(VERSION)+cu111 --target=amd64 libtorch-$(VERSION)+cu111.tgz
8586

8687

88+
update-apt:
89+
wget https://github.com/hasktorch/libtorch-binary-for-ci/releases/download/apt/Packages_$(PREVIOUS_VERSION).gz
90+
zcat Packages_$(PREVIOUS_VERSION).gz > Packages.org
91+
apt-ftparchive packages ./ > Packages.new
92+
cat Packages.new Packages.org | gzip | dd of=Packages.gz bs=1M
93+
for i in *.deb ; do echo $$i ; gh release upload apt $$i ; done
94+
cp Packages.gz Packages_$(VERSION).gz
95+
gh release upload apt Packages.gz --clobber
96+
gh release upload apt Packages_$(VERSION).gz

0 commit comments

Comments
 (0)