Commit c724474
Rework
* remove `embedded_autoextract`, it has never been used
* rework `config.ini` searching
By default the config.ini should be searched in the same directory of the binary.
If it's not found maybe could be in the parent of the binary, inside `Resources/` (we are on macos).
Added also some logging. Use `go-paths-helper` to ease things.
* fine-tune a config searching and parsing
* enable `ARDUINO_CREATE_AGENT_CONFIG` env var to specify the config.ini
* crashreports are now created in `.arduino-create/logs` to preserve macos bundle integrity
* embed config file and change a bit the logic of searching
* remove `config.ini` from the CI, now it's generated by the executable
* Use more appropriate directory folders for config.ini
* Moved config stuff in config.go
---------
Co-authored-by: Umberto Baldi <u.baldi@arduino.cc>
Co-authored-by: umbynos <umberto.baldi@edu.unito.it>config.ini path handling (#761)1 parent db73ee7 commit c724474
File tree
6 files changed
+512
-76
lines changed- .github/workflows
- .licenses/arduino-create-agent/go/github.com/arduino
- systray
6 files changed
+512
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | | - | |
149 | 147 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| |||
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 165 | | |
172 | 166 | | |
173 | 167 | | |
| |||
0 commit comments