Rename MatrixAssetName to BundleName

This commit is contained in:
Yudi 2025-05-09 18:06:48 -03:00
parent 5f83349f77
commit bff2b7d8e2
No known key found for this signature in database
GPG key ID: E4743B2F033961D1
2 changed files with 7 additions and 7 deletions

View file

@ -143,7 +143,7 @@ jobs:
shell: pwsh
run: >
./bundle-macos-app.ps1
-MatrixAssetName "${{ matrix.asset }}"
-BundleName "${{ matrix.asset }}"
-MatrixAppPath "${{ matrix.app }}"
-PublishDir "${{ matrix.app }}/bin/publish/"
-Version "${{ github.ref_type == 'tag' && github.ref_name || '999.9.9'}}"

View file

@ -1,6 +1,6 @@
param(
[Parameter(Mandatory=$true)]
[string]$MatrixAssetName,
[string]$BundleName,
[Parameter(Mandatory=$true)]
[string]$PublishDir,
@ -13,7 +13,7 @@ param(
)
# Setup paths
$appName = "$MatrixAssetName.app"
$appName = "$BundleName.app"
$appDir = Join-Path "bundle-macos-app-staging" $appName
$contentsDir = Join-Path $appDir "Contents"
$macosDir = Join-Path $contentsDir "MacOS"
@ -33,15 +33,15 @@ $plistContent = @"
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>$MatrixAssetName</string>
<string>$BundleName</string>
<key>CFBundleName</key>
<string>$MatrixAssetName</string>
<string>$BundleName</string>
<key>CFBundleExecutable</key>
<string>$MatrixAssetName</string>
<string>$BundleName</string>
<key>NSHumanReadableCopyright</key>
<string>© Oleksii Holub</string>
<key>CFBundleIdentifier</key>
<string>me.Tyrrrz.$MatrixAssetName</string>
<string>me.Tyrrrz.$BundleName</string>
<key>CFBundleSpokenName</key>
<string>Discord Chat Exporter</string>
<key>CFBundleIconFile</key>