Skip to content

Commit f5aefd3

Browse files
author
Maurizio Branca
committed
Add build .app step
1 parent 26f3e07 commit f5aefd3

File tree

4 files changed

+37
-9
lines changed

4 files changed

+37
-9
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99

10-
test:
10+
build:
1111
strategy:
1212
matrix:
1313
# operating-system: [ubuntu-latest, windows-latest, macOS-latest]
@@ -90,8 +90,8 @@ jobs:
9090
# file: ./coverage_integ.txt
9191
# flags: integ
9292

93-
sign-and-notarize:
94-
needs: test
93+
package-macOS:
94+
needs: build
9595
strategy:
9696
matrix:
9797
# operating-system: [windows-latest, macOS-latest]
@@ -100,8 +100,8 @@ jobs:
100100
runs-on: ${{ matrix.operating-system }}
101101

102102
steps:
103-
- name: Disable EOL conversions
104-
run: git config --global core.autocrlf false
103+
# - name: Disable EOL conversions
104+
# run: git config --global core.autocrlf false
105105

106106
- name: Checkout
107107
uses: actions/checkout@v2
@@ -110,9 +110,20 @@ jobs:
110110
uses: actions/download-artifact@v2
111111
with:
112112
name: arduino-create-agent-${{ matrix.operating-system }}
113+
path: arduino-create-agent
113114

114-
- name: Download Gon
115+
- name: Build .app
115116
run: |
116-
wget -q https://github.com/mitchellh/gon/releases/download/v0.2.2/gon_0.2.2_macos.zip
117-
unzip gon_0.2.2_macos.zip -d /usr/local/bin
118-
rm -f gon_0.2.2_macos.zip
117+
mkdir build
118+
cp -r skel/ build
119+
cp arduino-create-agent build/ArduinoCreateAgent.app/Contents/MacOS/Arduino_Create_Bridge
120+
cp config.ini build/ArduinoCreateAgent.app/Contents/MacOS/
121+
122+
find build
123+
shell: bash
124+
125+
# - name: Download Gon
126+
# run: |
127+
# wget -q https://github.com/mitchellh/gon/releases/download/v0.2.2/gon_0.2.2_macos.zip
128+
# unzip gon_0.2.2_macos.zip -d /usr/local/bin
129+
# rm -f gon_0.2.2_macos.zip
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?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>
2+
3+
<key>CFBundleIconFile</key> <string>AppIcon.icns</string>
4+
5+
<key>CFBundleName</key> <string>Arduino Create Agent</string>
6+
<key>CFBundleExecutable</key> <string>Arduino_Create_Bridge</string>
7+
<key>CFBundleIdentifier</key> <string>create.arduino.cc</string>
8+
9+
<key>CFBundleVersion</key> <string>0.1</string>
10+
<key>NSHumanReadableCopyright</key> <string>© Copyright 2020 Arduino LLC</string>
11+
<key>CFBundleShortVersionString</key> <string>0.1</string>
12+
<key>LSUIElement</key> <true/>
13+
<!-- Needed for Apache Callback -->
14+
<key>NSPrincipalClass</key><string>NSApplication</string>
15+
<key>NSMainNibFile</key><string>MainMenu</string>
16+
17+
</dict></plist>

skel/ArduinoCreateAgent.app/Contents/MacOS/.empty

Whitespace-only changes.
Binary file not shown.

0 commit comments

Comments
 (0)