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 shell: pwsh
run: > run: >
./bundle-macos-app.ps1 ./bundle-macos-app.ps1
-MatrixAssetName "${{ matrix.asset }}" -BundleName "${{ matrix.asset }}"
-MatrixAppPath "${{ matrix.app }}" -MatrixAppPath "${{ matrix.app }}"
-PublishDir "${{ matrix.app }}/bin/publish/" -PublishDir "${{ matrix.app }}/bin/publish/"
-Version "${{ github.ref_type == 'tag' && github.ref_name || '999.9.9'}}" -Version "${{ github.ref_type == 'tag' && github.ref_name || '999.9.9'}}"

View file

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