Skip to content

Commit 6732047

Browse files
authored
[EDITOR-503] fix wrong agent version in spotlight [MacOs] (#613)
* fix wrong agent version in spotlight [MacOs]
1 parent ad22db5 commit 6732047

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,33 @@ jobs:
300300
run: mv -v ${{ matrix.executable-path }}arduino-create-agent_cli${{ matrix.extension }} ${{ matrix.executable-path }}Arduino_Create_Agent_cli${{ matrix.extension }}
301301
if: matrix.os == 'ubuntu-18.04'
302302

303+
- name: get year
304+
run: echo "YEAR=$(date "+%Y")" >> $GITHUB_ENV
305+
if: matrix.os == 'macos-10.15'
306+
307+
- name: Generate Info.plist for MacOS
308+
run: |
309+
cat > skel/ArduinoCreateAgent.app/Contents/Info.plist <<EOF
310+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
311+
312+
<key>CFBundleIconFile</key> <string>AppIcon.icns</string>
313+
314+
<key>CFBundleName</key> <string>Arduino Create Agent</string>
315+
<key>CFBundleExecutable</key> <string>Arduino_Create_Agent</string>
316+
<key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
317+
318+
<key>CFBundleVersion</key> <string>${GITHUB_REF##*/}</string>
319+
<key>NSHumanReadableCopyright</key> <string>© Copyright ${{ env.YEAR }} Arduino LLC</string>
320+
<key>CFBundleShortVersionString</key> <string>${GITHUB_REF##*/}</string>
321+
<key>LSUIElement</key> <true/>
322+
<!-- Needed for Apache Callback -->
323+
<key>NSPrincipalClass</key><string>NSApplication</string>
324+
<key>NSMainNibFile</key><string>MainMenu</string>
325+
326+
</dict></plist>
327+
EOF
328+
if: matrix.os == 'macos-10.15'
329+
303330
- name: Save InstallBuilder license to file
304331
run: echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
305332

0 commit comments

Comments
 (0)