Skip to content

Commit 054e097

Browse files
author
Saiya
committed
feat: remove compile options to follow the official standards
1 parent 594f290 commit 054e097

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

SourceTree.alfredworkflow

29 Bytes
Binary file not shown.

workflow.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class Workflow {
3333

3434
/// detect current machine chip arch
3535
/// 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)
3939

40-
guard retVal == EXIT_SUCCESS else { return false }
40+
// guard retVal == EXIT_SUCCESS else { return false }
4141

42-
return String(cString: &sysInfo.machine.0, encoding: .utf8) == "arm64"
43-
}()
42+
// return String(cString: &sysInfo.machine.0, encoding: .utf8) == "arm64"
43+
// }()
4444

4545
/// detect whether workflow is using as a swift script
4646
/// false for binay
@@ -198,9 +198,9 @@ class SourceTree: Workflow {
198198
arg: "swiftc \"\(sourceFile)\" -O -o \"\(destFile)\""
199199
)
200200

201-
if Self.isScript {
201+
/* if Self.isScript {
202202
list.insert(compileScript, at: 0)
203-
} else if query == "$compile" {
203+
} else */if query == "$compile" {
204204
list.append(compileScript)
205205
}
206206
list.toAlfredResult().prettyPrint()

0 commit comments

Comments
 (0)