ci: update release workflows for rmcl rename
This commit is contained in:
1 parent
bf65814b7d
commit
2bc0728a48
4 files changed
+47
-47
No files matched your search
@@ -28,12 +28,12 @@ jobs:
|
||||
version="$(jq --raw-output '.releases[0].app_version' <<< "$PLAN")"
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: prepare mcl-launcher
|
||||
- name: prepare rmcl
|
||||
run: |
|
||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher/PKGBUILD
|
||||
cp pkg/mcl-launcher/PKGBUILD PKGBUILD
|
||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/rmcl/PKGBUILD
|
||||
cp pkg/rmcl/PKGBUILD PKGBUILD
|
||||
|
||||
- name: update checksums for mcl-launcher
|
||||
- name: update checksums for rmcl
|
||||
uses: datakrama/archlinux-package-action@v2
|
||||
with:
|
||||
updpkgsums: true
|
||||
@@ -41,10 +41,10 @@ jobs:
|
||||
flags: ""
|
||||
namcap: false
|
||||
|
||||
- name: publish mcl-launcher to AUR
|
||||
- name: publish rmcl to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||
with:
|
||||
pkgname: mcl-launcher
|
||||
pkgname: rmcl
|
||||
pkgbuild: PKGBUILD
|
||||
assets: .SRCINFO
|
||||
commit_username: objz
|
||||
@@ -52,14 +52,14 @@ jobs:
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
||||
|
||||
- name: prepare mcl-launcher-bin
|
||||
- name: prepare rmcl-bin
|
||||
run: |
|
||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
sed -i "s|^pkgrel=.*|pkgrel=1|" pkg/mcl-launcher-bin/PKGBUILD
|
||||
cp pkg/mcl-launcher-bin/PKGBUILD PKGBUILD
|
||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/rmcl-bin/PKGBUILD
|
||||
sed -i "s|^pkgrel=.*|pkgrel=1|" pkg/rmcl-bin/PKGBUILD
|
||||
cp pkg/rmcl-bin/PKGBUILD PKGBUILD
|
||||
rm -f .SRCINFO
|
||||
|
||||
- name: update checksums for mcl-launcher-bin
|
||||
- name: update checksums for rmcl-bin
|
||||
uses: datakrama/archlinux-package-action@v2
|
||||
with:
|
||||
updpkgsums: true
|
||||
@@ -67,10 +67,10 @@ jobs:
|
||||
flags: ""
|
||||
namcap: false
|
||||
|
||||
- name: publish mcl-launcher-bin to AUR
|
||||
- name: publish rmcl-bin to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||
with:
|
||||
pkgname: mcl-launcher-bin
|
||||
pkgname: rmcl-bin
|
||||
pkgbuild: PKGBUILD
|
||||
assets: .SRCINFO
|
||||
commit_username: objz
|
||||
@@ -78,12 +78,12 @@ jobs:
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
||||
|
||||
- name: prepare mcl-launcher-git
|
||||
- name: prepare rmcl-git
|
||||
run: |
|
||||
cp pkg/mcl-launcher-git/PKGBUILD PKGBUILD
|
||||
cp pkg/rmcl-git/PKGBUILD PKGBUILD
|
||||
rm -f .SRCINFO
|
||||
|
||||
- name: update metadata for mcl-launcher-git
|
||||
- name: update metadata for rmcl-git
|
||||
uses: datakrama/archlinux-package-action@v2
|
||||
with:
|
||||
updpkgsums: true
|
||||
@@ -91,10 +91,10 @@ jobs:
|
||||
flags: ""
|
||||
namcap: false
|
||||
|
||||
- name: publish mcl-launcher-git to AUR
|
||||
- name: publish rmcl-git to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||
with:
|
||||
pkgname: mcl-launcher-git
|
||||
pkgname: rmcl-git
|
||||
pkgbuild: PKGBUILD
|
||||
assets: .SRCINFO
|
||||
commit_username: objz
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -z "${CHOCOLATEY_API_KEY}" ]; then
|
||||
echo "::error::CHOCOLATEY_API_KEY is required to publish mcl-launcher to Chocolatey."
|
||||
echo "::error::CHOCOLATEY_API_KEY is required to publish rmcl to Chocolatey."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -37,8 +37,8 @@ jobs:
|
||||
run: |
|
||||
tag="$(jq --raw-output '.announcement_tag' <<< "$PLAN")"
|
||||
version="$(jq --raw-output '.releases[0].app_version' <<< "$PLAN")"
|
||||
package_dir="target/chocolatey/mcl-launcher"
|
||||
checksum_file="mcl-launcher-x86_64-pc-windows-msvc.msi.sha256"
|
||||
package_dir="target/chocolatey/rmcl"
|
||||
checksum_file="rmcl-x86_64-pc-windows-msvc.msi.sha256"
|
||||
|
||||
mkdir -p "$package_dir"
|
||||
cp -R pkg/chocolatey/* "$package_dir/"
|
||||
@@ -54,14 +54,14 @@ jobs:
|
||||
- name: pack Chocolatey package
|
||||
uses: crazy-max/ghaction-chocolatey@v4
|
||||
with:
|
||||
args: pack ${{ steps.package.outputs.package_dir }}/mcl-launcher.nuspec --version ${{ steps.package.outputs.version }} --output-directory target/chocolatey/out
|
||||
args: pack ${{ steps.package.outputs.package_dir }}/rmcl.nuspec --version ${{ steps.package.outputs.version }} --output-directory target/chocolatey/out
|
||||
|
||||
- name: push Chocolatey package
|
||||
shell: bash
|
||||
run: |
|
||||
package="target/chocolatey/out/mcl-launcher.${{ steps.package.outputs.version }}.nupkg"
|
||||
package="target/chocolatey/out/rmcl.${{ steps.package.outputs.version }}.nupkg"
|
||||
version="${{ steps.package.outputs.version }}"
|
||||
public_package_url="https://community.chocolatey.org/packages/mcl-launcher/$version"
|
||||
public_package_url="https://community.chocolatey.org/packages/rmcl/$version"
|
||||
saw_server_error=false
|
||||
|
||||
for attempt in 1 2 3; do
|
||||
@@ -94,7 +94,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "::error::Chocolatey rejected the push with 403 before any server-side failure. Check CHOCOLATEY_API_KEY ownership/permissions for mcl-launcher."
|
||||
echo "::error::Chocolatey rejected the push with 403 before any server-side failure. Check CHOCOLATEY_API_KEY ownership/permissions for rmcl."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -24,13 +24,13 @@ jobs:
|
||||
$plan = $env:PLAN | ConvertFrom-Json
|
||||
$tag = $plan.announcement_tag
|
||||
$version = $plan.releases[0].app_version
|
||||
$identifier = 'Objz.MclLauncher'
|
||||
$packagePath = "manifests/o/Objz/MclLauncher/$version"
|
||||
$identifier = 'Objz.Rmcl'
|
||||
$packagePath = "manifests/o/Objz/Rmcl/$version"
|
||||
$assetPath = "winget-manifest-$version.zip"
|
||||
$installerFile = 'mcl-launcher-x86_64-pc-windows-msvc.msi'
|
||||
$installerFile = 'rmcl-x86_64-pc-windows-msvc.msi'
|
||||
$checksumFile = "$installerFile.sha256"
|
||||
$installerUrl = "https://github.com/objz/mcl/releases/download/$tag/$installerFile"
|
||||
$checksumUrl = "https://github.com/objz/mcl/releases/download/$tag/$checksumFile"
|
||||
$installerUrl = "https://github.com/objz/rmcl/releases/download/$tag/$installerFile"
|
||||
$checksumUrl = "https://github.com/objz/rmcl/releases/download/$tag/$checksumFile"
|
||||
|
||||
New-Item -ItemType Directory -Path $packagePath -Force | Out-Null
|
||||
Invoke-WebRequest -Uri $checksumUrl -OutFile "$packagePath/$checksumFile"
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
' SilentWithProgress: /passive /norestart'
|
||||
'UpgradeBehavior: install'
|
||||
'Commands:'
|
||||
'- mcl'
|
||||
'- rmcl'
|
||||
'Installers:'
|
||||
'- Architecture: x64'
|
||||
" InstallerUrl: $installerUrl"
|
||||
@@ -74,16 +74,16 @@ jobs:
|
||||
'PackageLocale: en-US'
|
||||
'Publisher: objz'
|
||||
'PublisherUrl: https://github.com/objz'
|
||||
'PublisherSupportUrl: https://github.com/objz/mcl/issues'
|
||||
'PublisherSupportUrl: https://github.com/objz/rmcl/issues'
|
||||
'Author: objz'
|
||||
'PackageName: mcl-launcher'
|
||||
'PackageUrl: https://github.com/objz/mcl'
|
||||
'PackageName: rmcl'
|
||||
'PackageUrl: https://github.com/objz/rmcl'
|
||||
'License: GPL-3.0-only'
|
||||
'LicenseUrl: https://github.com/objz/mcl/blob/master/LICENSE'
|
||||
'LicenseUrl: https://github.com/objz/rmcl/blob/master/LICENSE'
|
||||
'Copyright: Copyright (c) objz'
|
||||
'ShortDescription: Minecraft launcher TUI'
|
||||
'Description: A fully featured Minecraft launcher TUI with Microsoft account authentication, instance management, mod loaders, imports, content management, and launch support.'
|
||||
'Moniker: mcl'
|
||||
'Moniker: rmcl'
|
||||
'Tags:'
|
||||
'- minecraft'
|
||||
'- launcher'
|
||||
|
||||
@@ -297,29 +297,29 @@ jobs:
|
||||
|
||||
| File | Platform | Checksum |
|
||||
| --- | --- | --- |
|
||||
| [mcl-launcher-aarch64-apple-darwin.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-apple-darwin.tar.xz) | Apple Silicon macOS | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-apple-darwin.tar.xz.sha256) |
|
||||
| [mcl-launcher-x86_64-apple-darwin.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-apple-darwin.tar.xz) | Intel macOS | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-apple-darwin.tar.xz.sha256) |
|
||||
| [mcl-launcher-x86_64-pc-windows-msvc.zip](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.zip.sha256) |
|
||||
| [mcl-launcher-x86_64-pc-windows-msvc.msi](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.msi) | x64 Windows | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-pc-windows-msvc.msi.sha256) |
|
||||
| [mcl-launcher-aarch64-unknown-linux-gnu.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz) | ARM64 Linux | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz.sha256) |
|
||||
| [mcl-launcher-x86_64-unknown-linux-gnu.tar.xz](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz) | x64 Linux | [checksum](https://github.com/objz/mcl/releases/download/${RELEASE_TAG}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz.sha256) |
|
||||
| [rmcl-aarch64-apple-darwin.tar.xz](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-aarch64-apple-darwin.tar.xz) | Apple Silicon macOS | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-aarch64-apple-darwin.tar.xz.sha256) |
|
||||
| [rmcl-x86_64-apple-darwin.tar.xz](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-apple-darwin.tar.xz) | Intel macOS | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-apple-darwin.tar.xz.sha256) |
|
||||
| [rmcl-x86_64-pc-windows-msvc.zip](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-pc-windows-msvc.zip.sha256) |
|
||||
| [rmcl-x86_64-pc-windows-msvc.msi](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-pc-windows-msvc.msi) | x64 Windows | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-pc-windows-msvc.msi.sha256) |
|
||||
| [rmcl-aarch64-unknown-linux-gnu.tar.xz](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-aarch64-unknown-linux-gnu.tar.xz) | ARM64 Linux | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-aarch64-unknown-linux-gnu.tar.xz.sha256) |
|
||||
| [rmcl-x86_64-unknown-linux-gnu.tar.xz](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-unknown-linux-gnu.tar.xz) | x64 Linux | [checksum](https://github.com/objz/rmcl/releases/download/${RELEASE_TAG}/rmcl-x86_64-unknown-linux-gnu.tar.xz.sha256) |
|
||||
|
||||
## Cargo
|
||||
|
||||
\`\`\`
|
||||
cargo install mcl-launcher
|
||||
cargo install rmcl
|
||||
\`\`\`
|
||||
|
||||
## Homebrew
|
||||
|
||||
\`\`\`
|
||||
brew install objz/tap/mcl-launcher
|
||||
brew install objz/tap/rmcl
|
||||
\`\`\`
|
||||
|
||||
## WinGet
|
||||
|
||||
\`\`\`
|
||||
winget install Objz.MclLauncher
|
||||
winget install Objz.Rmcl
|
||||
\`\`\`
|
||||
|
||||
The generated WinGet manifest is attached as \`winget-manifest-${APP_VERSION}.zip\` for local validation.
|
||||
@@ -327,13 +327,13 @@ jobs:
|
||||
## Chocolatey
|
||||
|
||||
\`\`\`
|
||||
choco install mcl-launcher
|
||||
choco install rmcl
|
||||
\`\`\`
|
||||
|
||||
## AUR
|
||||
|
||||
\`\`\`
|
||||
paru -S mcl-launcher-bin
|
||||
paru -S rmcl-bin
|
||||
\`\`\`
|
||||
EOF
|
||||
|
||||
|
||||
Reference in new issue
Block a user