@@ -35,7 +35,6 @@ import (
35
35
cors "github.com/andela/gin-cors"
36
36
"github.com/arduino/arduino-create-agent/systray"
37
37
"github.com/arduino/arduino-create-agent/tools"
38
- "github.com/arduino/arduino-create-agent/updater"
39
38
"github.com/arduino/arduino-create-agent/utilities"
40
39
v2 "github.com/arduino/arduino-create-agent/v2"
41
40
"github.com/gin-gonic/gin"
@@ -140,29 +139,29 @@ func main() {
140
139
AdditionalConfig : * additionalConfig ,
141
140
}
142
141
143
- path , err := osext .Executable ()
144
- if err != nil {
145
- panic (err )
146
- }
147
-
148
- // If the executable is temporary, copy it to the full path, then restart
149
- if strings .Contains (path , "-temp" ) {
150
- newPath := updater .BinPath (path )
151
- err := copyExe (path , newPath )
152
- if err != nil {
153
- log .Println ("Copy error: " , err )
154
- panic (err )
155
- }
156
-
157
- Systray .Update (newPath )
158
- } else {
159
- // Otherwise copy to a path with -temp suffix
160
- err := copyExe (path , updater .TempPath (path ))
161
- if err != nil {
162
- panic (err )
163
- }
164
- Systray .Start ()
165
- }
142
+ // path, err := osext.Executable()
143
+ // if err != nil {
144
+ // panic(err)
145
+ // }
146
+
147
+ // // If the executable is temporary, copy it to the full path, then restart
148
+ // if strings.Contains(path, "-temp") {
149
+ // newPath := updater.BinPath(path)
150
+ // err := copyExe(path, newPath)
151
+ // if err != nil {
152
+ // log.Println("Copy error: ", err)
153
+ // panic(err)
154
+ // }
155
+
156
+ // Systray.Update(newPath)
157
+ // } else {
158
+ // // Otherwise copy to a path with -temp suffix
159
+ // err := copyExe(path, updater.TempPath(path))
160
+ // if err != nil {
161
+ // panic(err)
162
+ // }
163
+ Systray .Start ()
164
+ // }
166
165
}
167
166
168
167
func copyExe (from , to string ) error {
0 commit comments