Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
fix: linux aur package
Browse files Browse the repository at this point in the history
Merge pull request #245 from KyleUltimate/patch-8
  • Loading branch information
SiongSng committed May 14, 2022
2 parents 95685f6 + e296b43 commit 74b963f
Showing 1 changed file with 6 additions and 42 deletions.
48 changes: 6 additions & 42 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,48 +208,12 @@ jobs:
RPMLauncher-MacOS/RPMLauncher-macOS-Installer.dmg
- name: Upload to Arch User Repository
env:
packageVersion: ${{ env.rwl_version_full }}
PRIVATE: ${{ secrets.PRIVATE }}
run: |
hasht=$(sha256sum "RPMLauncher-Linux.zip" | cut -d" " -f1)
mkdir ~/.ssh
touch ~/.ssh/known_hosts
ssh-keyscan -v -t ssh-rsa aur.archlinux.org >>~/.ssh/known_hosts
echo "Host aur.archlinux.org" >> ~/.ssh/config
echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config
echo " User aur" >> ~/.ssh/config
echo "$PRIVATE" >> ~/.ssh/aur
chmod -vR 600 ~/.ssh/aur
ssh-keygen -vy -f ~/.ssh/aur >~/.ssh/aur.pub
git clone ssh://aur@aur.archlinux.org/rpmlauncher-bin
cd rpmlauncher-bin
sed -i "s/sha256sums=.*/sha256sums=('$hasht'/" PKGBUILD
rm .SRCINFO
sed -i "s/pkgver=.*/pkgver=$packageVersion/" PKGBUILD
echo "pkgbase = rpmlauncher-bin" >> .SRCINFO
echo " pkgdesc = A better Minecraft Launcher that supports cross-platform and many functionalities for you to explore! " >> .SRCINFO
echo " pkgver = $packageVersion" >> .SRCINFO
echo " pkgrel = 1" >> .SRCINFO
echo " arch = x86_64" >> .SRCINFO
echo " license = GPL3" >> .SRCINFO
echo " makedepends = rsync" >> .SRCINFO
echo " provides = rpmlauncher" >> .SRCINFO
echo " conflicts = rpmlauncher" >> .SRCINFO
echo " source = https://github.com/RPMTW/RPMLauncher/releases/download/$packageVersion/RPMLauncher-Linux.zip" >> .SRCINFO
echo " source = RPMLauncher.desktop" >> .SRCINFO
echo " source = https://github.com/RPMTW/RPMLauncher/raw/develop/assets/images/Logo.png" >> .SRCINFO
echo " sha256sums = $hasht" >> .SRCINFO
echo " sha256sums = af2720db5735cc5e9fb9fe76e20f12d51da452e5360fb90a7086f360efbb3828" >> .SRCINFO
echo " sha256sums = 4fb011f8924ae51231875788181bd5800345500745364fb921c22448f368d570" >> .SRCINFO
echo " " >> .SRCINFO
echo "pkgname = rpmlauncher-bin" >> .SRCINFO
git config --global user.email "shiue.kyle@gmail.com"
git config --global user.name "KyleUltimate"
git add PKGBUILD .SRCINFO
git commit -m "Auto update to $packageVersion"
git remote add aur "ssh://aur@aur.archlinux.org/rpmlauncher-bin"
git push origin master
uses: ATiltedTree/create-aur-release@v1
with:
package_name: rpmlauncher-bin
commit_username: "KyleUltimate"
commit_email: "shiue.kyle@gmail.com"
ssh_private_key: ${{ secrets.PRIVATE }}

- name: Create sentry release
uses: getsentry/action-release@v1
Expand Down

0 comments on commit 74b963f

Please sign in to comment.