File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments