safari-pilot 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/Safari Pilot.app/Contents/CodeResources +0 -0
- package/bin/Safari Pilot.app/Contents/Info.plist +2 -2
- package/bin/Safari Pilot.app/Contents/MacOS/Safari Pilot +0 -0
- package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/Info.plist +2 -2
- package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/MacOS/Safari Pilot Extension +0 -0
- package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/Resources/background.js +1 -1
- package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/Resources/manifest.json +1 -1
- package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/_CodeSignature/CodeResources +4 -4
- package/bin/Safari Pilot.app/Contents/Resources/Base.lproj/Main.storyboardc/Info.plist +0 -0
- package/bin/Safari Pilot.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib +0 -0
- package/bin/Safari Pilot.app/Contents/Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib +0 -0
- package/bin/Safari Pilot.app/Contents/_CodeSignature/CodeResources +7 -7
- package/bin/Safari Pilot.zip +0 -0
- package/extension/background.js +1 -1
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
- package/scripts/build-extension.sh +13 -3
|
Binary file
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
<key>CFBundlePackageType</key>
|
|
24
24
|
<string>APPL</string>
|
|
25
25
|
<key>CFBundleShortVersionString</key>
|
|
26
|
-
<string>1.
|
|
26
|
+
<string>0.1.2</string>
|
|
27
27
|
<key>CFBundleSupportedPlatforms</key>
|
|
28
28
|
<array>
|
|
29
29
|
<string>MacOSX</string>
|
|
30
30
|
</array>
|
|
31
31
|
<key>CFBundleVersion</key>
|
|
32
|
-
<string>
|
|
32
|
+
<string>202604130021</string>
|
|
33
33
|
<key>DTCompiler</key>
|
|
34
34
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
35
35
|
<key>DTPlatformBuild</key>
|
|
Binary file
|
package/bin/Safari Pilot.app/Contents/PlugIns/Safari Pilot Extension.appex/Contents/Info.plist
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
<key>CFBundlePackageType</key>
|
|
20
20
|
<string>XPC!</string>
|
|
21
21
|
<key>CFBundleShortVersionString</key>
|
|
22
|
-
<string>1.
|
|
22
|
+
<string>0.1.2</string>
|
|
23
23
|
<key>CFBundleSupportedPlatforms</key>
|
|
24
24
|
<array>
|
|
25
25
|
<string>MacOSX</string>
|
|
26
26
|
</array>
|
|
27
27
|
<key>CFBundleVersion</key>
|
|
28
|
-
<string>
|
|
28
|
+
<string>202604130021</string>
|
|
29
29
|
<key>DTCompiler</key>
|
|
30
30
|
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
31
31
|
<key>DTPlatformBuild</key>
|
|
Binary file
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|
274
274
|
// Health check
|
|
275
275
|
if (message && message.type === 'ping') {
|
|
276
|
-
sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.
|
|
276
|
+
sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.2' });
|
|
277
277
|
return false;
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Resources/background.js</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
ovTiVCagj3LSRMutLiSXv6Wi0xA=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Resources/content-isolated.js</key>
|
|
12
12
|
<data>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</data>
|
|
31
31
|
<key>Resources/manifest.json</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
5RMCdicroAVAfhnFOScx+ENQBTo=
|
|
34
34
|
</data>
|
|
35
35
|
</dict>
|
|
36
36
|
<key>files2</key>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<dict>
|
|
40
40
|
<key>hash2</key>
|
|
41
41
|
<data>
|
|
42
|
-
|
|
42
|
+
o/ZGbzsRyHTeaEzfhD3UN/+f0MyUYe0/DTDjofgGvz8=
|
|
43
43
|
</data>
|
|
44
44
|
</dict>
|
|
45
45
|
<key>Resources/content-isolated.js</key>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<dict>
|
|
82
82
|
<key>hash2</key>
|
|
83
83
|
<data>
|
|
84
|
-
|
|
84
|
+
ex8/97WUDrwOAbKOwqUKKJoeakMt7r8Zqyn+Zzfecug=
|
|
85
85
|
</data>
|
|
86
86
|
</dict>
|
|
87
87
|
</dict>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
</data>
|
|
19
19
|
<key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
0pHUIi5rGzSpYz4ztpJ9t40hlCI=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
vPWEH3ezPccOOSZJUmvKlN+gGqo=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
AdhpJsuSA/7LVzfYeU9JxwiYZD8=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
|
|
32
32
|
<data>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<dict>
|
|
52
52
|
<key>cdhash</key>
|
|
53
53
|
<data>
|
|
54
|
-
|
|
54
|
+
SFM6UnmyD9GGgthkeojcQYgvbvI=
|
|
55
55
|
</data>
|
|
56
56
|
<key>requirement</key>
|
|
57
57
|
<string>identifier "com.safari-pilot.app.Extension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = V37WLKRXUJ</string>
|
|
@@ -81,21 +81,21 @@
|
|
|
81
81
|
<dict>
|
|
82
82
|
<key>hash2</key>
|
|
83
83
|
<data>
|
|
84
|
-
|
|
84
|
+
IV7Ttsm+HV4PhZ11Znl9XztaovASGFgv95fjhOnPG/s=
|
|
85
85
|
</data>
|
|
86
86
|
</dict>
|
|
87
87
|
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
|
|
88
88
|
<dict>
|
|
89
89
|
<key>hash2</key>
|
|
90
90
|
<data>
|
|
91
|
-
|
|
91
|
+
yhdollPy0NxS7xi36YuAdOftD8N9l/T322acrbhv5AE=
|
|
92
92
|
</data>
|
|
93
93
|
</dict>
|
|
94
94
|
<key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
|
|
95
95
|
<dict>
|
|
96
96
|
<key>hash2</key>
|
|
97
97
|
<data>
|
|
98
|
-
|
|
98
|
+
7jpSeb4cWHd30hZeexdutS3qlJtfVvOJxyQJ5jXPFhE=
|
|
99
99
|
</data>
|
|
100
100
|
</dict>
|
|
101
101
|
<key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
|
package/bin/Safari Pilot.zip
CHANGED
|
Binary file
|
package/extension/background.js
CHANGED
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|
274
274
|
// Health check
|
|
275
275
|
if (message && message.type === 'ping') {
|
|
276
|
-
sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.
|
|
276
|
+
sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.2' });
|
|
277
277
|
return false;
|
|
278
278
|
}
|
|
279
279
|
|
package/extension/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,12 @@ APP_DIR="$ROOT/app"
|
|
|
8
8
|
XCODE_PROJECT_DIR="$APP_DIR/Safari Pilot"
|
|
9
9
|
BUNDLE_ID="com.safari-pilot.app"
|
|
10
10
|
|
|
11
|
+
# Read version from package.json — single source of truth
|
|
12
|
+
VERSION=$(python3 -c "import json; print(json.load(open('$ROOT/package.json'))['version'])")
|
|
13
|
+
BUILD_NUMBER=$(date +%Y%m%d%H%M)
|
|
14
|
+
|
|
11
15
|
echo "=== Safari Pilot Extension Build ==="
|
|
16
|
+
echo "Version: $VERSION (build $BUILD_NUMBER)"
|
|
12
17
|
|
|
13
18
|
# Step 1: Generate Xcode project from extension source
|
|
14
19
|
echo "Generating Xcode project..."
|
|
@@ -36,7 +41,12 @@ PBXPROJ="$XCODE_PROJECT_DIR/Safari Pilot.xcodeproj/project.pbxproj"
|
|
|
36
41
|
echo "Fixing bundle identifier in Xcode project..."
|
|
37
42
|
sed -i '' "s/PRODUCT_BUNDLE_IDENTIFIER = \"com.safari-pilot.Safari-Pilot\";/PRODUCT_BUNDLE_IDENTIFIER = \"$BUNDLE_ID\";/g" "$PBXPROJ"
|
|
38
43
|
|
|
39
|
-
# Step 3:
|
|
44
|
+
# Step 3: Sync versions from package.json into Xcode build settings
|
|
45
|
+
echo "Setting version $VERSION (build $BUILD_NUMBER) in Xcode project..."
|
|
46
|
+
sed -i '' "s/MARKETING_VERSION = .*;/MARKETING_VERSION = $VERSION;/g" "$PBXPROJ"
|
|
47
|
+
sed -i '' "s/CURRENT_PROJECT_VERSION = .*;/CURRENT_PROJECT_VERSION = $BUILD_NUMBER;/g" "$PBXPROJ"
|
|
48
|
+
|
|
49
|
+
# Step 4: Create placeholder Icon.png if missing
|
|
40
50
|
# The packager references Icon.png in the project but doesn't create it.
|
|
41
51
|
ICON_PATH="$XCODE_PROJECT_DIR/Safari Pilot/Resources/Icon.png"
|
|
42
52
|
if [ ! -f "$ICON_PATH" ]; then
|
|
@@ -66,7 +76,7 @@ with open('$ICON_PATH', 'wb') as f:
|
|
|
66
76
|
"
|
|
67
77
|
fi
|
|
68
78
|
|
|
69
|
-
# Step
|
|
79
|
+
# Step 5: Build the app
|
|
70
80
|
echo "Building app (Release)..."
|
|
71
81
|
cd "$XCODE_PROJECT_DIR"
|
|
72
82
|
xcodebuild \
|
|
@@ -76,7 +86,7 @@ xcodebuild \
|
|
|
76
86
|
-derivedDataPath "$ROOT/.build/extension" \
|
|
77
87
|
build 2>&1
|
|
78
88
|
|
|
79
|
-
# Step
|
|
89
|
+
# Step 6: Copy built app to bin/
|
|
80
90
|
APP_PATH=$(find "$ROOT/.build/extension" -name "Safari Pilot.app" -type d | head -1)
|
|
81
91
|
if [ -n "$APP_PATH" ]; then
|
|
82
92
|
echo "Built app at: $APP_PATH"
|