Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 4bf17a9

Browse files
authored
ci(build): multi-arch support (#35)
1 parent d35cea9 commit 4bf17a9

File tree

2 files changed

+15
-31
lines changed

2 files changed

+15
-31
lines changed

InjectGUI.xcodeproj/project.pbxproj

+1-17
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
38BC1F5A2C4B98A300C3B60E /* AppDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38BC1F592C4B98A300C3B60E /* AppDetailView.swift */; };
3434
38BC1F5C2C4BB02200C3B60E /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38BC1F5B2C4BB02200C3B60E /* SettingsView.swift */; };
3535
38E944F22C5A761B00B252A3 /* Executor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38E944F12C5A761B00B252A3 /* Executor.swift */; };
36-
38E944F52C5A7F6A00B252A3 /* Cache in Frameworks */ = {isa = PBXBuildFile; productRef = 38E944F42C5A7F6A00B252A3 /* Cache */; };
3736
38E944F72C5A85E200B252A3 /* Cache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38E944F62C5A85E200B252A3 /* Cache.swift */; };
3837
96BC7ED02C65C5E200149818 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 96BC7ECF2C65C5E200149818 /* Localizable.xcstrings */; };
3938
96BC7ED62C65E7B100149818 /* AboutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 96BC7ED52C65E7B100149818 /* AboutView.swift */; };
@@ -79,7 +78,6 @@
7978
isa = PBXFrameworksBuildPhase;
8079
buildActionMask = 2147483647;
8180
files = (
82-
38E944F52C5A7F6A00B252A3 /* Cache in Frameworks */,
8381
380D777B2C61EA56005F3150 /* Sparkle in Frameworks */,
8482
383943792C68458F00E5984E /* Inject in Frameworks */,
8583
);
@@ -214,7 +212,6 @@
214212
);
215213
name = InjectGUI;
216214
packageProductDependencies = (
217-
38E944F42C5A7F6A00B252A3 /* Cache */,
218215
380D777A2C61EA56005F3150 /* Sparkle */,
219216
383943782C68458F00E5984E /* Inject */,
220217
);
@@ -248,7 +245,6 @@
248245
);
249246
mainGroup = 38877A102C4A6F83009F5910;
250247
packageReferences = (
251-
38E944F32C5A7F6A00B252A3 /* XCRemoteSwiftPackageReference "Cache" */,
252248
380D77792C61EA56005F3150 /* XCRemoteSwiftPackageReference "Sparkle" */,
253249
383943772C68458F00E5984E /* XCRemoteSwiftPackageReference "Inject" */,
254250
);
@@ -453,6 +449,7 @@
453449
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
454450
MACOSX_DEPLOYMENT_TARGET = 12.0;
455451
MARKETING_VERSION = 1.2.2;
452+
ONLY_ACTIVE_ARCH = NO;
456453
OTHER_LDFLAGS = (
457454
"-Xlinker",
458455
"-interposable",
@@ -547,14 +544,6 @@
547544
minimumVersion = 1.5.2;
548545
};
549546
};
550-
38E944F32C5A7F6A00B252A3 /* XCRemoteSwiftPackageReference "Cache" */ = {
551-
isa = XCRemoteSwiftPackageReference;
552-
repositoryURL = "https://github.com/hyperoslo/Cache";
553-
requirement = {
554-
kind = exactVersion;
555-
version = 7.2.0;
556-
};
557-
};
558547
/* End XCRemoteSwiftPackageReference section */
559548

560549
/* Begin XCSwiftPackageProductDependency section */
@@ -568,11 +557,6 @@
568557
package = 383943772C68458F00E5984E /* XCRemoteSwiftPackageReference "Inject" */;
569558
productName = Inject;
570559
};
571-
38E944F42C5A7F6A00B252A3 /* Cache */ = {
572-
isa = XCSwiftPackageProductDependency;
573-
package = 38E944F32C5A7F6A00B252A3 /* XCRemoteSwiftPackageReference "Cache" */;
574-
productName = Cache;
575-
};
576560
/* End XCSwiftPackageProductDependency section */
577561
};
578562
rootObject = 38877A112C4A6F83009F5910 /* Project object */;

InjectGUI/Backend/Cache.swift

+14-14
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
//
55
// Created by wibus on 2024/7/31.
66
//
7-
8-
import Cache
9-
10-
enum CacheKey {
11-
static let latestCommitHash = "latestCommitHash"
12-
}
13-
14-
// MARK: - Cache Configuration
15-
16-
// 存一个有关 main/latest commit hash 的缓存
17-
let diskConfig = DiskConfig(name: "InjectLib")
18-
let memoryConfig = MemoryConfig(expiry: .never, countLimit: 10, totalCostLimit: 10)
19-
let transformer = TransformerFactory.forCodable(ofType: String.self)
20-
let storage = try! Storage<String, String>(diskConfig: diskConfig, memoryConfig: memoryConfig, transformer: transformer)
7+
//
8+
//import Cache
9+
//
10+
//enum CacheKey {
11+
// static let latestCommitHash = "latestCommitHash"
12+
//}
13+
//
14+
//// MARK: - Cache Configuration
15+
//
16+
//// 存一个有关 main/latest commit hash 的缓存
17+
//let diskConfig = DiskConfig(name: "InjectLib")
18+
//let memoryConfig = MemoryConfig(expiry: .never, countLimit: 10, totalCostLimit: 10)
19+
//let transformer = TransformerFactory.forCodable(ofType: String.self)
20+
//let storage = try! Storage<String, String>(diskConfig: diskConfig, memoryConfig: memoryConfig, transformer: transformer)

0 commit comments

Comments
 (0)