File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ class Workflow {
33
33
34
34
/// detect current machine chip arch
35
35
/// reference: https://stackoverflow.com/questions/69624731/programmatically-detect-apple-silicon-vs-intel-cpu-in-a-mac-app-at-runtime
36
- static var isAppleChip : Bool = {
37
- var sysInfo = utsname ( )
38
- let retVal = uname ( & sysInfo)
36
+ // static var isAppleChip: Bool = {
37
+ // var sysInfo = utsname()
38
+ // let retVal = uname(&sysInfo)
39
39
40
- guard retVal == EXIT_SUCCESS else { return false }
40
+ // guard retVal == EXIT_SUCCESS else { return false }
41
41
42
- return String ( cString: & sysInfo. machine. 0 , encoding: . utf8) == " arm64 "
43
- } ( )
42
+ // return String(cString: &sysInfo.machine.0, encoding: .utf8) == "arm64"
43
+ // }()
44
44
45
45
/// detect whether workflow is using as a swift script
46
46
/// false for binay
@@ -198,9 +198,9 @@ class SourceTree: Workflow {
198
198
arg: " swiftc \" \( sourceFile) \" -O -o \" \( destFile) \" "
199
199
)
200
200
201
- if Self . isScript {
201
+ /* if Self.isScript {
202
202
list.insert(compileScript, at: 0)
203
- } else if query == " $compile " {
203
+ } else */ if query == " $compile " {
204
204
list. append ( compileScript)
205
205
}
206
206
list. toAlfredResult ( ) . prettyPrint ( )
You can’t perform that action at this time.
0 commit comments