ci: add release packaging
This commit is contained in:
1 parent
33b2d856bc
commit
441607f0da
18 files changed
+1056
-208
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>mcl-launcher</id>
|
||||
<version>0.0.0</version>
|
||||
<packageSourceUrl>https://github.com/objz/mcl</packageSourceUrl>
|
||||
<owners>objz</owners>
|
||||
<title>mcl-launcher</title>
|
||||
<authors>objz</authors>
|
||||
<projectUrl>https://github.com/objz/mcl</projectUrl>
|
||||
<licenseUrl>https://github.com/objz/mcl/blob/master/LICENSE</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<projectSourceUrl>https://github.com/objz/mcl</projectSourceUrl>
|
||||
<docsUrl>https://github.com/objz/mcl#readme</docsUrl>
|
||||
<bugTrackerUrl>https://github.com/objz/mcl/issues</bugTrackerUrl>
|
||||
<tags>minecraft launcher cli tui rust</tags>
|
||||
<summary>Minecraft launcher TUI</summary>
|
||||
<description>A fully featured Minecraft launcher TUI with Microsoft account authentication, instance management, mod loaders, imports, content management, and launch support.</description>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -0,0 +1,12 @@
|
||||
VERIFICATION
|
||||
|
||||
This package downloads the official MSI from the GitHub release:
|
||||
|
||||
https://github.com/objz/mcl/releases/download/__TAG__/mcl-launcher-x86_64-pc-windows-msvc.msi
|
||||
|
||||
The SHA256 checksum is generated by cargo-dist and published next to the release asset:
|
||||
|
||||
https://github.com/objz/mcl/releases/download/__TAG__/mcl-launcher-x86_64-pc-windows-msvc.msi.sha256
|
||||
|
||||
Expected SHA256:
|
||||
__CHECKSUM64__
|
||||
@@ -0,0 +1,14 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$packageArgs = @{
|
||||
packageName = $env:ChocolateyPackageName
|
||||
fileType = 'msi'
|
||||
url64bit = 'https://github.com/objz/mcl/releases/download/__TAG__/mcl-launcher-x86_64-pc-windows-msvc.msi'
|
||||
softwareName = 'mcl-launcher*'
|
||||
checksum64 = '__CHECKSUM64__'
|
||||
checksumType64 = 'sha256'
|
||||
silentArgs = '/quiet /norestart'
|
||||
validExitCodes = @(0, 3010, 1641)
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @packageArgs
|
||||
@@ -10,8 +10,8 @@ depends=()
|
||||
provides=('mcl-launcher')
|
||||
conflicts=('mcl-launcher' 'mcl-launcher-git')
|
||||
source=("LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE" "README-${pkgver}::${url}/raw/v${pkgver}/README.md")
|
||||
source_x86_64=("${url}/releases/download/v${pkgver}/mcl-${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
|
||||
source_aarch64=("${url}/releases/download/v${pkgver}/mcl-${pkgver}-aarch64-unknown-linux-gnu.tar.gz")
|
||||
source_x86_64=("${url}/releases/download/v${pkgver}/mcl-launcher-x86_64-unknown-linux-gnu.tar.xz")
|
||||
source_aarch64=("${url}/releases/download/v${pkgver}/mcl-launcher-aarch64-unknown-linux-gnu.tar.xz")
|
||||
sha256sums=('SKIP' 'SKIP')
|
||||
sha256sums_x86_64=('SKIP')
|
||||
sha256sums_aarch64=('SKIP')
|
||||
|
||||
@@ -7,7 +7,7 @@ arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/objz/mcl"
|
||||
license=('GPL-3.0-only')
|
||||
depends=()
|
||||
makedepends=('git' 'rust' 'cargo')
|
||||
makedepends=('git' 'rust' 'cargo' 'jdk-openjdk')
|
||||
provides=('mcl-launcher')
|
||||
conflicts=('mcl-launcher' 'mcl-launcher-bin')
|
||||
source=("git+$url.git")
|
||||
|
||||
@@ -7,7 +7,7 @@ arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/objz/mcl"
|
||||
license=('GPL-3.0-only')
|
||||
depends=()
|
||||
makedepends=('rust' 'cargo')
|
||||
makedepends=('rust' 'cargo' 'jdk-openjdk')
|
||||
provides=('mcl-launcher')
|
||||
conflicts=('mcl-launcher-bin' 'mcl-launcher-git')
|
||||
source=("${url}/archive/v${pkgver}.tar.gz")
|
||||
|
||||
Reference in new issue
Block a user