Skip to content

Commit

Permalink
Rollback usage of git LFS since yum does not understand link file.
Browse files Browse the repository at this point in the history
For now removing create-hardfork and create-state files from artifacts and thus reducing the size of rpm files to less than 100MB.
  • Loading branch information
neodix42 committed Jan 29, 2024
1 parent eab4683 commit 9c9aeb2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/create-rpm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
mkdir -p ton-linux-rpm-aarch64/{bin,lib/fift,share/ton}
cp -r ton-linux-arm64/smartcont ton-linux-rpm-aarch64/share/ton/
cp ton-linux-arm64/lib/* ton-linux-rpm-aarch64/lib/fift/
rm -rf ton-linux-arm64/{lib,smartcont}
rm -rf ton-linux-arm64/{lib,smartcont}
rm ton-linux-arm64/{create-hardfork,create-state}
mv ton-linux-arm64/libtonlibjson.so* ton-linux-rpm-aarch64/lib/
[ -e ton-linux-arm64/libemulator.so ] && mv ton-linux-arm64/libemulator.so ton-linux-rpm-aarch64/lib/
cp ton-linux-arm64/* ton-linux-rpm-aarch64/bin/
Expand All @@ -38,6 +39,7 @@ jobs:
cp -r ton-linux-x86_64/smartcont ton-linux-rpm-x86_64/share/ton/
cp ton-linux-x86_64/lib/* ton-linux-rpm-x86_64/lib/fift/
rm -rf ton-linux-x86_64/{lib,smartcont}
rm ton-linux-x86_64//{create-hardfork,create-state}
mv ton-linux-x86_64/libtonlibjson.so* ton-linux-rpm-x86_64/lib/
[ -e ton-linux-x86_64/libemulator.so ] && mv ton-linux-x86_64/libemulator.so ton-linux-rpm-x86_64/lib/
cp ton-linux-x86_64/* ton-linux-rpm-x86_64/bin/
Expand Down Expand Up @@ -73,12 +75,17 @@ jobs:
rm -rf rpm
cp -r ../work/packages-out/rpm-install rpm
git lfs install
git lfs track "*.rpm"
git add .gitattributes
git add rpm
git commit -m "create RPM release$TAG" || true
# one-by-one, since there is a gh limit of 100 MB upload
git add rpm/x86_64/
git commit -m "add x86_64 rpm $TAG" || true
git push
git add rpm/aarch64/
git commit -m "add aarch64 rpm $TAG" || true
git push
git add rpm/repodata/
git commit -m "create release repodata $TAG" || true
git push
gh release create --notes "" $TAG ../work/ton-linux-x86-64.tar.gz
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ These packages are based on the latest binary artifacts https://github.com/ton-b
```
sudo bash -c 'cat > /etc/yum.repos.d/ton.repo << EOF
[ton]
name=Ton
name=TON
baseurl=https://ton-blockchain.github.io/packages/rpm
enabled=1
type=rpm
Expand All @@ -22,12 +22,6 @@ sudo yum install -y ton
```
sudo pamac build -no-confirm ton-bin
```
<!-- currently unavailable since still in the review at https://community.chocolatey.org/
### Install Windows binaries (choco)
```
choco install ton
```
-->

### Install deb (apt)
#### Debian, Ubuntu, Linux Mint...
Expand All @@ -43,6 +37,10 @@ sudo apt install ton
```
brew tap ton-blockchain/ton
brew install ton
# upgrade
brew update
brew reinstall ton
```

### Install via Chocolatey
Expand Down

0 comments on commit 9c9aeb2

Please sign in to comment.