Do not bundle CLIs in MCPB packages.

Point extensions at ArtCraft Launcher installs and require WordCraft/GridCraft on the machine.
This commit is contained in:
Dominic Gundel committed 2026-10-19 16:15:08 +02:00
1 parent 2fd4164ee7
commit 2c02038e8c
20 files changed
+96 -69

No files matched your search

+20 -4
View File
@@ -5,9 +5,25 @@
param([Parameter(Mandatory = $true)][string]$Name)
. (Join-Path $PSScriptRoot 'lib.ps1')
$Token = $env:GITEA_TOKEN
if (-not $Token) {
Write-Host 'GITEA_TOKEN fehlt. Persoenliches Zugangs-Token mit Schreibrecht (write:repository), nur in der Umgebung.'
# Prefer GITEA_TOKEN; otherwise reuse git credential helper (same auth as git push).
$AuthHeader = $null
if ($env:GITEA_TOKEN) {
$AuthHeader = "token $($env:GITEA_TOKEN)"
}
else {
$credRaw = "protocol=https`nhost=git.gundel.dev`n`n" | git credential fill 2>$null
$user = $null; $pass = $null
foreach ($line in $credRaw) {
if ($line -match '^username=(.*)$') { $user = $Matches[1] }
if ($line -match '^password=(.*)$') { $pass = $Matches[1] }
}
if ($user -and $pass) {
$pair = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("${user}:${pass}"))
$AuthHeader = "Basic $pair"
}
}
if (-not $AuthHeader) {
Write-Host 'Keine Auth: GITEA_TOKEN setzen oder git credential fuer git.gundel.dev hinterlegen.'
exit 1
}
@@ -58,7 +74,7 @@ $api = 'https://git.gundel.dev/api/v1/repos/dg/claude-skills'
function Invoke-Gitea([string]$Method, [string]$Url, [byte[]]$Body, [string]$ContentType) {
$req = [Net.HttpWebRequest]::Create($Url)
$req.Method = $Method
$req.Headers.Add('Authorization', "token $Token")
$req.Headers.Add('Authorization', $AuthHeader)
$req.Accept = 'application/json'
if ($null -ne $Body) {
$req.ContentType = $ContentType