@lmk1010/airpods-helper 0.0.0-stage → 0.2.2-rc.1
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/LICENSE +21 -0
- package/assets/airpods-2-buds.png +0 -0
- package/assets/airpods-2-closed.png +0 -0
- package/assets/airpods-2-open-left.png +0 -0
- package/assets/airpods-2-open-right.png +0 -0
- package/assets/airpods-2-open.png +0 -0
- package/assets/airpods-3-buds.png +0 -0
- package/assets/airpods-3-closed.png +0 -0
- package/assets/airpods-3-open-left.png +0 -0
- package/assets/airpods-3-open-right.png +0 -0
- package/assets/airpods-3-open.png +0 -0
- package/assets/airpods-4-buds.png +0 -0
- package/assets/airpods-4-closed.png +0 -0
- package/assets/airpods-4-open-left.png +0 -0
- package/assets/airpods-4-open-right.png +0 -0
- package/assets/airpods-4-open.png +0 -0
- package/assets/airpods-max.png +0 -0
- package/assets/airpods-pro-buds.png +0 -0
- package/assets/airpods-pro-closed.png +0 -0
- package/assets/airpods-pro-open-left.png +0 -0
- package/assets/airpods-pro-open-right.png +0 -0
- package/assets/airpods-pro-open.png +0 -0
- package/assets/thumb/airpods-2-buds.png +0 -0
- package/assets/thumb/airpods-2-closed.png +0 -0
- package/assets/thumb/airpods-3-buds.png +0 -0
- package/assets/thumb/airpods-3-closed.png +0 -0
- package/assets/thumb/airpods-4-buds.png +0 -0
- package/assets/thumb/airpods-4-closed.png +0 -0
- package/assets/thumb/airpods-max.png +0 -0
- package/assets/thumb/airpods-pro-buds.png +0 -0
- package/assets/thumb/airpods-pro-closed.png +0 -0
- package/bin/DSH AirPods.app/Contents/Info.plist +16 -0
- package/bin/DSH AirPods.app/Contents/MacOS/dsh-airpods-helper +0 -0
- package/bin/DSH AirPods.app/Contents/_CodeSignature/CodeResources +115 -0
- package/lib/index.js +19 -0
- package/lib/types/index.d.ts +5 -0
- package/package.json +33 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0"><dict>
|
|
4
|
+
<key>CFBundleExecutable</key><string>dsh-airpods-helper</string>
|
|
5
|
+
<key>CFBundlePackageType</key><string>APPL</string>
|
|
6
|
+
<key>CFBundleShortVersionString</key><string>1.0</string>
|
|
7
|
+
<key>CFBundleVersion</key><string>1</string>
|
|
8
|
+
<key>LSUIElement</key><true/>
|
|
9
|
+
<key>LSMinimumSystemVersion</key><string>13.0</string>
|
|
10
|
+
<key>CFBundleIdentifier</key><string>com.dshub.airpods-helper</string>
|
|
11
|
+
<key>CFBundleName</key><string>DSH AirPods</string>
|
|
12
|
+
<key>NSBluetoothAlwaysUsageDescription</key><string>Detect when your AirPods case opens and show their battery.</string>
|
|
13
|
+
<key>NSMicrophoneUsageDescription</key><string>Hear what you say after you press your AirPods.</string>
|
|
14
|
+
<key>NSSpeechRecognitionUsageDescription</key><string>Turn what you say into text on this Mac.</string>
|
|
15
|
+
<key>NSMotionUsageDescription</key><string>Nod or shake your head to answer DSH.</string>
|
|
16
|
+
</dict></plist>
|
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict/>
|
|
7
|
+
<key>files2</key>
|
|
8
|
+
<dict/>
|
|
9
|
+
<key>rules</key>
|
|
10
|
+
<dict>
|
|
11
|
+
<key>^Resources/</key>
|
|
12
|
+
<true/>
|
|
13
|
+
<key>^Resources/.*\.lproj/</key>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>optional</key>
|
|
16
|
+
<true/>
|
|
17
|
+
<key>weight</key>
|
|
18
|
+
<real>1000</real>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>omit</key>
|
|
23
|
+
<true/>
|
|
24
|
+
<key>weight</key>
|
|
25
|
+
<real>1100</real>
|
|
26
|
+
</dict>
|
|
27
|
+
<key>^Resources/Base\.lproj/</key>
|
|
28
|
+
<dict>
|
|
29
|
+
<key>weight</key>
|
|
30
|
+
<real>1010</real>
|
|
31
|
+
</dict>
|
|
32
|
+
<key>^version.plist$</key>
|
|
33
|
+
<true/>
|
|
34
|
+
</dict>
|
|
35
|
+
<key>rules2</key>
|
|
36
|
+
<dict>
|
|
37
|
+
<key>.*\.dSYM($|/)</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>weight</key>
|
|
40
|
+
<real>11</real>
|
|
41
|
+
</dict>
|
|
42
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>omit</key>
|
|
45
|
+
<true/>
|
|
46
|
+
<key>weight</key>
|
|
47
|
+
<real>2000</real>
|
|
48
|
+
</dict>
|
|
49
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>nested</key>
|
|
52
|
+
<true/>
|
|
53
|
+
<key>weight</key>
|
|
54
|
+
<real>10</real>
|
|
55
|
+
</dict>
|
|
56
|
+
<key>^.*</key>
|
|
57
|
+
<true/>
|
|
58
|
+
<key>^Info\.plist$</key>
|
|
59
|
+
<dict>
|
|
60
|
+
<key>omit</key>
|
|
61
|
+
<true/>
|
|
62
|
+
<key>weight</key>
|
|
63
|
+
<real>20</real>
|
|
64
|
+
</dict>
|
|
65
|
+
<key>^PkgInfo$</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>omit</key>
|
|
68
|
+
<true/>
|
|
69
|
+
<key>weight</key>
|
|
70
|
+
<real>20</real>
|
|
71
|
+
</dict>
|
|
72
|
+
<key>^Resources/</key>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>20</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Resources/.*\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>optional</key>
|
|
80
|
+
<true/>
|
|
81
|
+
<key>weight</key>
|
|
82
|
+
<real>1000</real>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>omit</key>
|
|
87
|
+
<true/>
|
|
88
|
+
<key>weight</key>
|
|
89
|
+
<real>1100</real>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>^Resources/Base\.lproj/</key>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>weight</key>
|
|
94
|
+
<real>1010</real>
|
|
95
|
+
</dict>
|
|
96
|
+
<key>^[^/]+$</key>
|
|
97
|
+
<dict>
|
|
98
|
+
<key>nested</key>
|
|
99
|
+
<true/>
|
|
100
|
+
<key>weight</key>
|
|
101
|
+
<real>10</real>
|
|
102
|
+
</dict>
|
|
103
|
+
<key>^embedded\.provisionprofile$</key>
|
|
104
|
+
<dict>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>20</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^version\.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>weight</key>
|
|
111
|
+
<real>20</real>
|
|
112
|
+
</dict>
|
|
113
|
+
</dict>
|
|
114
|
+
</dict>
|
|
115
|
+
</plist>
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { sep } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
//#region lib/types/index.js
|
|
4
|
+
/** Locations of the native helper binary and connect-card renders shipped in this package. */
|
|
5
|
+
/**
|
|
6
|
+
* Packaged Electron apps keep this package inside `app.asar`, while the binary and renders are unpacked next to it
|
|
7
|
+
* (`app.asar.unpacked`); a path inside the archive cannot be spawned or used as a working directory.
|
|
8
|
+
* @param path - path computed from this module's location.
|
|
9
|
+
* @returns the on-disk path.
|
|
10
|
+
*/
|
|
11
|
+
function unpacked(path) {
|
|
12
|
+
return path.replace(`${sep}app.asar${sep}`, `${sep}app.asar.unpacked${sep}`);
|
|
13
|
+
}
|
|
14
|
+
/** Absolute path of the universal macOS helper executable. */
|
|
15
|
+
const helperExecutable = unpacked(fileURLToPath(new URL("../bin/DSH AirPods.app/Contents/MacOS/dsh-airpods-helper", import.meta.url)));
|
|
16
|
+
/** Absolute path of the directory holding the product renders. */
|
|
17
|
+
const helperAssets = unpacked(fileURLToPath(new URL("../assets", import.meta.url)));
|
|
18
|
+
//#endregion
|
|
19
|
+
export { helperAssets, helperExecutable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmk1010/airpods-helper",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "macOS native helper: AirPods proximity, connections, connect card and press-to-talk capture",
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./lib/types/index.d.ts",
|
|
9
|
+
"default": "./lib/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./src/*": "./src/*",
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"lib/index.js",
|
|
16
|
+
"lib/types/**/*.d.ts",
|
|
17
|
+
"bin/**/*",
|
|
18
|
+
"assets/*.png",
|
|
19
|
+
"assets/thumb/*.png"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"main": "lib/index.js",
|
|
23
|
+
"types": "lib/types/index.d.ts",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/lmk1010/dsh-airpods-space.git",
|
|
30
|
+
"directory": "packages/airpods/airpods-helper"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/lmk1010/dsh-airpods-space#readme",
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build:native": "sh scripts/build.sh"
|
|
35
|
+
}
|
|
6
36
|
}
|
package/README.md
DELETED