clippa 1.0.9 → 1.0.11
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 +1 -1
- package/README.md +5 -2
- package/bin/install-clippa.js +13 -10
- package/outputs/Clippa.app.zip +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
+
<a href="https://github.com/Vaniawl/Clippa/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/Vaniawl/Clippa/ci.yml?branch=main&style=flat-square"></a>
|
|
12
13
|
<a href="https://github.com/Vaniawl/Clippa/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/Vaniawl/Clippa?style=flat-square"></a>
|
|
13
14
|
<img alt="macOS 26+" src="https://img.shields.io/badge/macOS-26%2B-111111?style=flat-square">
|
|
14
15
|
<a href="LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-087f78?style=flat-square"></a>
|
|
@@ -20,6 +21,8 @@
|
|
|
20
21
|
<a href="https://github.com/Vaniawl/Clippa/releases">Releases</a>
|
|
21
22
|
·
|
|
22
23
|
<a href="#privacy">Privacy</a>
|
|
24
|
+
·
|
|
25
|
+
<a href="CONTRIBUTING.md">Contributing</a>
|
|
23
26
|
</p>
|
|
24
27
|
|
|
25
28
|
<p align="center">
|
|
@@ -111,7 +114,7 @@ git pull origin main
|
|
|
111
114
|
|
|
112
115
|
## Production Notes
|
|
113
116
|
|
|
114
|
-
- Bundle identifier: `
|
|
115
|
-
- Version: `1.0.
|
|
117
|
+
- Bundle identifier: `app.clippa.Clippa`
|
|
118
|
+
- Version: `1.0.11`
|
|
116
119
|
- Release builds use hardened runtime.
|
|
117
120
|
- History retention and item limits are configurable; the default is 100 items for one week.
|
package/bin/install-clippa.js
CHANGED
|
@@ -7,10 +7,10 @@ const path = require("node:path");
|
|
|
7
7
|
const https = require("node:https");
|
|
8
8
|
|
|
9
9
|
const appName = "Clippa";
|
|
10
|
-
const
|
|
10
|
+
const bundleIdentifiers = ["app.clippa.Clippa", "io.github.vaniawl.Clippa", "com.ivandovhosheia.Clippa"];
|
|
11
11
|
const localZipPath = path.resolve(__dirname, "../outputs/Clippa.app.zip");
|
|
12
12
|
const packageJson = require("../package.json");
|
|
13
|
-
const defaultZipUrl = "https://github.com/Vaniawl/Clippa/releases/download/v1.0.
|
|
13
|
+
const defaultZipUrl = "https://github.com/Vaniawl/Clippa/releases/download/v1.0.11/Clippa.app.zip";
|
|
14
14
|
const zipUrl = process.env.CLIPPA_ZIP_URL || defaultZipUrl;
|
|
15
15
|
|
|
16
16
|
function usage() {
|
|
@@ -116,18 +116,21 @@ function copyApp(source, destination) {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
function quitRunningApp() {
|
|
119
|
-
|
|
120
|
-
run("/usr/bin/osascript", ["-e", `tell application id "${bundleIdentifier}" to quit`], {
|
|
121
|
-
stdio: "ignore",
|
|
122
|
-
timeout: 3000
|
|
123
|
-
});
|
|
124
|
-
} catch {
|
|
119
|
+
for (const bundleIdentifier of bundleIdentifiers) {
|
|
125
120
|
try {
|
|
126
|
-
run("/usr/bin/
|
|
121
|
+
run("/usr/bin/osascript", ["-e", `tell application id "${bundleIdentifier}" to quit`], {
|
|
122
|
+
stdio: "ignore",
|
|
123
|
+
timeout: 3000
|
|
124
|
+
});
|
|
127
125
|
} catch {
|
|
128
|
-
// The app may not be
|
|
126
|
+
// The app may not be registered with this bundle identifier.
|
|
129
127
|
}
|
|
130
128
|
}
|
|
129
|
+
try {
|
|
130
|
+
run("/usr/bin/killall", [appName], { stdio: "ignore", timeout: 3000 });
|
|
131
|
+
} catch {
|
|
132
|
+
// The app may not be running yet.
|
|
133
|
+
}
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
async function main() {
|
package/outputs/Clippa.app.zip
CHANGED
|
Binary file
|