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")"
|
version="$(jq --raw-output '.releases[0].app_version' <<< "$PLAN")"
|
||||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: prepare mcl-launcher
|
- name: prepare rmcl
|
||||||
run: |
|
run: |
|
||||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher/PKGBUILD
|
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/rmcl/PKGBUILD
|
||||||
cp pkg/mcl-launcher/PKGBUILD PKGBUILD
|
cp pkg/rmcl/PKGBUILD PKGBUILD
|
||||||
|
|
||||||
- name: update checksums for mcl-launcher
|
- name: update checksums for rmcl
|
||||||
uses: datakrama/archlinux-package-action@v2
|
uses: datakrama/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
updpkgsums: true
|
updpkgsums: true
|
||||||
@@ -41,10 +41,10 @@ jobs:
|
|||||||
flags: ""
|
flags: ""
|
||||||
namcap: false
|
namcap: false
|
||||||
|
|
||||||
- name: publish mcl-launcher to AUR
|
- name: publish rmcl to AUR
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||||
with:
|
with:
|
||||||
pkgname: mcl-launcher
|
pkgname: rmcl
|
||||||
pkgbuild: PKGBUILD
|
pkgbuild: PKGBUILD
|
||||||
assets: .SRCINFO
|
assets: .SRCINFO
|
||||||
commit_username: objz
|
commit_username: objz
|
||||||
@@ -52,14 +52,14 @@ jobs:
|
|||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: prepare mcl-launcher-bin
|
- name: prepare rmcl-bin
|
||||||
run: |
|
run: |
|
||||||
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/mcl-launcher-bin/PKGBUILD
|
sed -i "s|^pkgver=.*|pkgver=${{ steps.version.outputs.version }}|" pkg/rmcl-bin/PKGBUILD
|
||||||
sed -i "s|^pkgrel=.*|pkgrel=1|" pkg/mcl-launcher-bin/PKGBUILD
|
sed -i "s|^pkgrel=.*|pkgrel=1|" pkg/rmcl-bin/PKGBUILD
|
||||||
cp pkg/mcl-launcher-bin/PKGBUILD PKGBUILD
|
cp pkg/rmcl-bin/PKGBUILD PKGBUILD
|
||||||
rm -f .SRCINFO
|
rm -f .SRCINFO
|
||||||
|
|
||||||
- name: update checksums for mcl-launcher-bin
|
- name: update checksums for rmcl-bin
|
||||||
uses: datakrama/archlinux-package-action@v2
|
uses: datakrama/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
updpkgsums: true
|
updpkgsums: true
|
||||||
@@ -67,10 +67,10 @@ jobs:
|
|||||||
flags: ""
|
flags: ""
|
||||||
namcap: false
|
namcap: false
|
||||||
|
|
||||||
- name: publish mcl-launcher-bin to AUR
|
- name: publish rmcl-bin to AUR
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||||
with:
|
with:
|
||||||
pkgname: mcl-launcher-bin
|
pkgname: rmcl-bin
|
||||||
pkgbuild: PKGBUILD
|
pkgbuild: PKGBUILD
|
||||||
assets: .SRCINFO
|
assets: .SRCINFO
|
||||||
commit_username: objz
|
commit_username: objz
|
||||||
@@ -78,12 +78,12 @@ jobs:
|
|||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
commit_message: "Update to ${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: prepare mcl-launcher-git
|
- name: prepare rmcl-git
|
||||||
run: |
|
run: |
|
||||||
cp pkg/mcl-launcher-git/PKGBUILD PKGBUILD
|
cp pkg/rmcl-git/PKGBUILD PKGBUILD
|
||||||
rm -f .SRCINFO
|
rm -f .SRCINFO
|
||||||
|
|
||||||
- name: update metadata for mcl-launcher-git
|
- name: update metadata for rmcl-git
|
||||||
uses: datakrama/archlinux-package-action@v2
|
uses: datakrama/archlinux-package-action@v2
|
||||||
with:
|
with:
|
||||||
updpkgsums: true
|
updpkgsums: true
|
||||||
@@ -91,10 +91,10 @@ jobs:
|
|||||||
flags: ""
|
flags: ""
|
||||||
namcap: false
|
namcap: false
|
||||||
|
|
||||||
- name: publish mcl-launcher-git to AUR
|
- name: publish rmcl-git to AUR
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||||
with:
|
with:
|
||||||
pkgname: mcl-launcher-git
|
pkgname: rmcl-git
|
||||||
pkgbuild: PKGBUILD
|
pkgbuild: PKGBUILD
|
||||||
assets: .SRCINFO
|
assets: .SRCINFO
|
||||||
commit_username: objz
|
commit_username: objz
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ -z "${CHOCOLATEY_API_KEY}" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -37,8 +37,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tag="$(jq --raw-output '.announcement_tag' <<< "$PLAN")"
|
tag="$(jq --raw-output '.announcement_tag' <<< "$PLAN")"
|
||||||
version="$(jq --raw-output '.releases[0].app_version' <<< "$PLAN")"
|
version="$(jq --raw-output '.releases[0].app_version' <<< "$PLAN")"
|
||||||
package_dir="target/chocolatey/mcl-launcher"
|
package_dir="target/chocolatey/rmcl"
|
||||||
checksum_file="mcl-launcher-x86_64-pc-windows-msvc.msi.sha256"
|
checksum_file="rmcl-x86_64-pc-windows-msvc.msi.sha256"
|
||||||
|
|
||||||
mkdir -p "$package_dir"
|
mkdir -p "$package_dir"
|
||||||
cp -R pkg/chocolatey/* "$package_dir/"
|
cp -R pkg/chocolatey/* "$package_dir/"
|
||||||
@@ -54,14 +54,14 @@ jobs:
|
|||||||
- name: pack Chocolatey package
|
- name: pack Chocolatey package
|
||||||
uses: crazy-max/ghaction-chocolatey@v4
|
uses: crazy-max/ghaction-chocolatey@v4
|
||||||
with:
|
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
|
- name: push Chocolatey package
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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 }}"
|
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
|
saw_server_error=false
|
||||||
|
|
||||||
for attempt in 1 2 3; do
|
for attempt in 1 2 3; do
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ jobs:
|
|||||||
$plan = $env:PLAN | ConvertFrom-Json
|
$plan = $env:PLAN | ConvertFrom-Json
|
||||||
$tag = $plan.announcement_tag
|
$tag = $plan.announcement_tag
|
||||||
$version = $plan.releases[0].app_version
|
$version = $plan.releases[0].app_version
|
||||||
$identifier = 'Objz.MclLauncher'
|
$identifier = 'Objz.Rmcl'
|
||||||
$packagePath = "manifests/o/Objz/MclLauncher/$version"
|
$packagePath = "manifests/o/Objz/Rmcl/$version"
|
||||||
$assetPath = "winget-manifest-$version.zip"
|
$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"
|
$checksumFile = "$installerFile.sha256"
|
||||||
$installerUrl = "https://github.com/objz/mcl/releases/download/$tag/$installerFile"
|
$installerUrl = "https://github.com/objz/rmcl/releases/download/$tag/$installerFile"
|
||||||
$checksumUrl = "https://github.com/objz/mcl/releases/download/$tag/$checksumFile"
|
$checksumUrl = "https://github.com/objz/rmcl/releases/download/$tag/$checksumFile"
|
||||||
|
|
||||||
New-Item -ItemType Directory -Path $packagePath -Force | Out-Null
|
New-Item -ItemType Directory -Path $packagePath -Force | Out-Null
|
||||||
Invoke-WebRequest -Uri $checksumUrl -OutFile "$packagePath/$checksumFile"
|
Invoke-WebRequest -Uri $checksumUrl -OutFile "$packagePath/$checksumFile"
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
' SilentWithProgress: /passive /norestart'
|
' SilentWithProgress: /passive /norestart'
|
||||||
'UpgradeBehavior: install'
|
'UpgradeBehavior: install'
|
||||||
'Commands:'
|
'Commands:'
|
||||||
'- mcl'
|
'- rmcl'
|
||||||
'Installers:'
|
'Installers:'
|
||||||
'- Architecture: x64'
|
'- Architecture: x64'
|
||||||
" InstallerUrl: $installerUrl"
|
" InstallerUrl: $installerUrl"
|
||||||
@@ -74,16 +74,16 @@ jobs:
|
|||||||
'PackageLocale: en-US'
|
'PackageLocale: en-US'
|
||||||
'Publisher: objz'
|
'Publisher: objz'
|
||||||
'PublisherUrl: https://github.com/objz'
|
'PublisherUrl: https://github.com/objz'
|
||||||
'PublisherSupportUrl: https://github.com/objz/mcl/issues'
|
'PublisherSupportUrl: https://github.com/objz/rmcl/issues'
|
||||||
'Author: objz'
|
'Author: objz'
|
||||||
'PackageName: mcl-launcher'
|
'PackageName: rmcl'
|
||||||
'PackageUrl: https://github.com/objz/mcl'
|
'PackageUrl: https://github.com/objz/rmcl'
|
||||||
'License: GPL-3.0-only'
|
'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'
|
'Copyright: Copyright (c) objz'
|
||||||
'ShortDescription: Minecraft launcher TUI'
|
'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.'
|
'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:'
|
'Tags:'
|
||||||
'- minecraft'
|
'- minecraft'
|
||||||
'- launcher'
|
'- launcher'
|
||||||
|
|||||||
@@ -297,29 +297,29 @@ jobs:
|
|||||||
|
|
||||||
| File | Platform | Checksum |
|
| 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) |
|
| [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) |
|
||||||
| [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) |
|
| [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) |
|
||||||
| [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) |
|
| [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) |
|
||||||
| [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) |
|
| [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) |
|
||||||
| [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) |
|
| [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) |
|
||||||
| [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-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
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
cargo install mcl-launcher
|
cargo install rmcl
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
## Homebrew
|
## Homebrew
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
brew install objz/tap/mcl-launcher
|
brew install objz/tap/rmcl
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
## WinGet
|
## WinGet
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
winget install Objz.MclLauncher
|
winget install Objz.Rmcl
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
The generated WinGet manifest is attached as \`winget-manifest-${APP_VERSION}.zip\` for local validation.
|
The generated WinGet manifest is attached as \`winget-manifest-${APP_VERSION}.zip\` for local validation.
|
||||||
@@ -327,13 +327,13 @@ jobs:
|
|||||||
## Chocolatey
|
## Chocolatey
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
choco install mcl-launcher
|
choco install rmcl
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
## AUR
|
## AUR
|
||||||
|
|
||||||
\`\`\`
|
\`\`\`
|
||||||
paru -S mcl-launcher-bin
|
paru -S rmcl-bin
|
||||||
\`\`\`
|
\`\`\`
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user