Skip to content

Commit db90f2c

Browse files
committed
1.2.3
1 parent ab88010 commit db90f2c

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,35 @@ jobs:
2222
- name: Rust Cache
2323
uses: Swatinem/rust-cache@v2
2424

25-
# 1. Binary bauen
25+
# 1. Binary im Release-Modus bauen
2626
- name: Build Binary
2727
run: cargo build --release
2828

29-
# 2. Plugin-Struktur ohne Version im Ordnernamen erstellen
30-
- name: Prepare Plugin Folder
29+
# 2. Flache Struktur für den Installer vorbereiten
30+
- name: Prepare Plugin Content
3131
shell: pwsh
3232
run: |
33-
$pluginName = "de.thatzok.thebus.sdPlugin"
34-
New-Item -ItemType Directory -Path $pluginName -Force
33+
# Wir erstellen einen temporären Ordner für den Inhalt
34+
New-Item -ItemType Directory -Path "dist" -Force
3535
36-
Copy-Item "target/release/thebus-streamdeck-plugin.exe" "$pluginName/"
36+
# Das Binary hineinkopieren
37+
Copy-Item "target/release/thebus-streamdeck-plugin.exe" "dist/"
3738
39+
# Alle Assets (inkl. manifest.json) direkt in den dist-Ordner kopieren
3840
if (Test-Path "assets") {
39-
Copy-Item -Path "assets/*" -Destination "$pluginName/" -Recurse -Force
41+
Copy-Item -Path "assets/*" -Destination "dist/" -Recurse -Force
4042
}
4143
42-
# 3. ZIP-Archiv OHNE Versionsnummer im Dateinamen erstellen
43-
- name: Create ZIP Archive
44+
# 3. Das .streamDeckPlugin Paket erstellen
45+
# WICHTIG: Wir packen den INHALT von dist, damit manifest.json ganz oben liegt
46+
- name: Create Stream Deck Plugin Package
4447
shell: pwsh
4548
run: |
46-
$pluginName = "de.thatzok.thebus.sdPlugin"
47-
Compress-Archive -Path $pluginName -DestinationPath "$pluginName.zip"
49+
Compress-Archive -Path dist/* -DestinationPath "de.thatzok.thebus.sdPlugin.streamDeckPlugin"
4850
4951
# 4. Upload zum GitHub Release
5052
- name: Create Release
5153
uses: softprops/action-gh-release@v2
5254
with:
53-
files: "de.thatzok.thebus.sdPlugin.zip"
55+
files: "de.thatzok.thebus.sdPlugin.streamDeckPlugin"
5456
generate_release_notes: true

0 commit comments

Comments
 (0)