Skip to content

Commit

Permalink
Add all versions of Xnapper
Browse files Browse the repository at this point in the history
  • Loading branch information
inject-X committed Dec 23, 2024
1 parent acb7a76 commit b5c3bf1
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 8 deletions.
6 changes: 6 additions & 0 deletions AppList.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,10 @@ EA7E-8888888
<td>arm64</td>
<td>-</td>
</tr>
<tr>
<td>Xnapper</td>
<td>ALL</td>
<td>arm64, x86_64</td>
<td>88888888-8888-8888-8888-888888888888</td>
</tr>
</table>
17 changes: 15 additions & 2 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>injectX</title>
<item>
<title>1.0.0</title>
<pubDate>Mon, 23 Dec 2024 14:45:37 +0800</pubDate>
<sparkle:version>09</sparkle:version>
<sparkle:shortVersionString>1.0.0</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<description><![CDATA[
<ul>
<li>Add all versions of Xnapper.</li>
</ul>
]]></description>
<enclosure url="https://github.com/inject-X/injectX/releases/latest/download/injectX.zip" length="3746319" type="application/octet-stream" sparkle:edSignature="5rnbiKpeSDILTNt45IjTDoV+iiQP5LC1/IygsrKOP4Kyr9nFn9ZfLWlDaMyi/6mKfDT43ppj9GRlSODmxuagAQ=="/>
</item>
<item>
<title>1.0.0</title>
<pubDate>Mon, 23 Dec 2024 14:00:32 +0800</pubDate>
Expand All @@ -10,7 +23,7 @@
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<description><![CDATA[
<ul>
<li>Fixing the injection for APTV version 1.3.9.</li>
<li>Fixed the inject for APTV version 1.3.9.</li>
</ul>
]]></description>
<enclosure url="https://github.com/inject-X/injectX/releases/latest/download/injectX.zip" length="3747377" type="application/octet-stream" sparkle:edSignature="sYxBEaJPDun4kSba3gaTadghSg1PrpHLwtFyEHfuwuMFo+6rNl2VA/v30z4kJJLVbnVOnkpY4+iXMQutMsqEAA=="/>
Expand All @@ -23,7 +36,7 @@
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<description><![CDATA[
<ul>
<li>Fix Picview and Longshot.</li>
<li>Fixed Picview and Longshot.</li>
</ul>
]]></description>
<enclosure url="https://github.com/inject-X/injectX/releases/latest/download/injectX.zip" length="3747380" type="application/octet-stream" sparkle:edSignature="v1QE0xtlBDOzfeniOomXiqmHRqh8quyy7T09Nfg6DUkpQPrRaUVz2FkrIV6ke9CttCacs2Jyoqd5JkyrDKpcAw=="/>
Expand Down
4 changes: 2 additions & 2 deletions injectX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = injectX/injectX.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 08;
CURRENT_PROJECT_VERSION = 09;
DEVELOPMENT_ASSET_PATHS = "\"injectX/Preview Content\"";
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -325,7 +325,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = injectX/injectX.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 08;
CURRENT_PROJECT_VERSION = 09;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_ASSET_PATHS = "\"injectX/Preview Content\"";
ENABLE_PREVIEWS = YES;
Expand Down
Binary file not shown.
18 changes: 16 additions & 2 deletions injectX/Resources/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
<string>ALL</string>
<key>command</key>
<array>
<string>defaults write com.binarynights.ForkLift registrationData -data &quot;7b227175616e74697479223a3939392c2276616c696469747944617465223a333132343035313230302c227369676e6174757265223a22222c226e616d65223a226875616e6740676d61696c2e636f6d222c226c6963656e73655f74797065223a332c226c6963656e73654b6579223a22424e464c303330312d42544352343137352d35353433323535302d3432363432313232227d&quot;</string>
<string>defaults write com.binarynights.ForkLift registrationData -data "7b227175616e74697479223a3939392c2276616c696469747944617465223a333132343035313230302c227369676e6174757265223a22222c226e616d65223a226875616e6740676d61696c2e636f6d222c226c6963656e73655f74797065223a332c226c6963656e73654b6579223a22424e464c303330312d42544352343137352d35353433323535302d3432363432313232227d"</string>
</array>
<key>fixHelper</key>
<string>true</string>
Expand Down Expand Up @@ -343,6 +343,20 @@
<key>injectFile</key>
<string>Things3</string>
</dict>
<key>com.devuap.beautyshotapp</key>
<dict>
<key>arch</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>bundleShortVersion</key>
<string>ALL</string>
<key>bundleVersion</key>
<string>ALL</string>
<key>injectFile</key>
<string>Xnapper</string>
</dict>
<key>com.drbuho.BuhoCleaner</key>
<dict>
<key>arch</key>
Expand Down Expand Up @@ -529,7 +543,7 @@
<key>command</key>
<array>
<string>defaults write com.mac.utility.media.hub IsOneTimePayment -bool true</string>
<string>defaults write com.mac.utility.media.hub purchasedPurductIdentifiers -array &quot;store.vidhub.vip.lifetime&quot;</string>
<string>defaults write com.mac.utility.media.hub purchasedPurductIdentifiers -array "store.vidhub.vip.lifetime"</string>
</array>
<key>injectFile</key>
<string>MediaCenter</string>
Expand Down
Binary file modified injectX/Resources/injectX.dylib
Binary file not shown.
6 changes: 4 additions & 2 deletions injectX/ViewModels/AppScannerViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class AppScannerViewModel: ObservableObject {
}

private func getLocalizedName(for bundle: Bundle) -> String {
// 首先尝试获取本地化名称
let preferredLanguages = Bundle.main.preferredLocalizations

for language in preferredLanguages {
Expand All @@ -128,15 +129,16 @@ class AppScannerViewModel: ObservableObject {
}
}

if let infoPlistPath = bundle.url(forResource: "Info", withExtension: "plist"),
let infoDictionary = NSDictionary(contentsOf: infoPlistPath) as? [String: Any] {
// 如果没有找到本地化名称,使用 infoDictionary 获取默认名称
if let infoDictionary = bundle.infoDictionary {
if let displayName = infoDictionary["CFBundleDisplayName"] as? String {
return displayName
} else if let bundleName = infoDictionary["CFBundleName"] as? String {
return bundleName
}
}

// 如果都没有找到,返回 fallback 名称
let fallbackName = bundle.bundleURL.deletingPathExtension().lastPathComponent
return fallbackName
}
Expand Down

0 comments on commit b5c3bf1

Please sign in to comment.