Commit 5d7a93f 1 parent 5669563 commit 5d7a93f Copy full SHA for 5d7a93f
File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ func initializeApp(state *RunL1NodeState) tea.Cmd {
823
823
}
824
824
}
825
825
826
- if err = utils .CreateService (utils .GetRunL1NodeServiceName (), utils .GetDarwinRunL1NodePlist (state .initiadVersion )); err != nil {
826
+ if err = utils .CreateService (utils .GetRunL1NodeServiceName (), utils .GetRunL1NodeServiceContent (state .initiadVersion )); err != nil {
827
827
panic (fmt .Sprintf ("failed to create service: %v" , err ))
828
828
}
829
829
Original file line number Diff line number Diff line change @@ -159,6 +159,22 @@ func GetRunL1NodeServiceName() string {
159
159
}
160
160
}
161
161
162
+ func GetRunL1NodeServiceContent (version string ) string {
163
+ switch runtime .GOOS {
164
+ case "linux" :
165
+ return GetLinuxRunL1NodeServiceContent (version )
166
+ case "darwin" :
167
+ return GetDarwinRunL1NodePlist (version )
168
+ default :
169
+ panic (fmt .Errorf ("unsupported operating system: %s" , runtime .GOOS ))
170
+ }
171
+ }
172
+
173
+ func GetLinuxRunL1NodeServiceContent (version string ) string {
174
+ // TODO: Implement this function
175
+ return ""
176
+ }
177
+
162
178
func GetDarwinRunL1NodePlist (version string ) string {
163
179
userHome , err := os .UserHomeDir ()
164
180
if err != nil {
You can’t perform that action at this time.
0 commit comments