Skip to content

Commit aa9f440

Browse files
committed
add _cli executable for compatibility
1 parent 281fd59 commit aa9f440

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
run: task build
5757
if: matrix.operating-system != 'windows-latest'
5858

59+
- name: Build the Agent-cli
60+
run: task build-cli
61+
if: matrix.operating-system == 'ubuntu-latest'
62+
5963
- name: Build the Agent for win
6064
run: task build-win
6165
if: matrix.operating-system == 'windows-latest'
@@ -125,12 +129,16 @@ jobs:
125129
path: ${{ matrix.executable-path }}
126130

127131
- name: Make executable
128-
run: chmod +x ${{ matrix.executable-path }}arduino-create-agent
132+
run: chmod +x ${{ matrix.executable-path }}arduino-create-agent*
129133
if: matrix.operating-system == 'ubuntu-latest' || matrix.operating-system == 'macOS-latest'
130134

131135
- name: Rename executable to Arduino_Create_Bridge
132136
run: mv ${{ matrix.executable-path }}arduino-create-agent${{ matrix.extension }} ${{ matrix.executable-path }}Arduino_Create_Bridge${{ matrix.extension }}
133137

138+
- name: Rename executable to Arduino_Create_Bridge_cli
139+
run: mv ${{ matrix.executable-path }}arduino-create-agent_cli${{ matrix.extension }} ${{ matrix.executable-path }}Arduino_Create_Bridge_cli${{ matrix.extension }}
140+
if: matrix.operating-system == 'ubuntu-latest'
141+
134142
- name: Save InstallBuilder license to file
135143
run: echo "${{ secrets.INSTALLER_LICENSE }}" > /tmp/license.xml
136144

Taskfile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ tasks:
77
cmds:
88
- go build -v -i {{.LDFLAGS}}
99

10+
build-cli:
11+
desc: Build the project without tray support
12+
cmds:
13+
- go build -v -i -tags cli -o {{.APP_NAME}}_cli {{.LDFLAGS}}
14+
1015
build-win:
1116
desc: Build the project for win
1217
cmds:
@@ -47,6 +52,7 @@ vars:
4752
DEFAULT_TARGETS:
4853
sh: echo `go list ./... | grep -v 'arduino-create-agent/gen/' | tr '\n' ' '`
4954
# build vars
55+
APP_NAME: arduino-create-agent
5056
WIN_FLAGS: -H=windowsgui
5157
COMMIT:
5258
sh: echo ${TRAVIS_COMMIT:-`git log -n 1 --format=%h`}

0 commit comments

Comments
 (0)