@neplex/upserve-tauri 0.1.0 → 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/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @neplex/upserve-tauri
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ed0006b: Add optional `Asset.aliases` and the `findAssetByUrl()` matching helper. The GitHub provider records each asset's REST API URL as a verified alias, so Tauri manifests that reference `api.github.com/.../releases/assets/ID` URLs resolve, while redirects keep using the public download URL. Aliases must be HTTPS, credential-free and unique to one asset; unknown URLs, mismatched asset IDs and other repositories are rejected.
|
|
8
|
+
- Updated dependencies [ed0006b]
|
|
9
|
+
- Updated dependencies [8cde839]
|
|
10
|
+
- @neplex/upserve@0.2.0
|
|
11
|
+
|
|
12
|
+
## 0.1.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Refresh package documentation with expanded guides, configuration and API references.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @neplex/upserve@0.1.1
|
|
19
|
+
|
|
3
20
|
## 0.1.0
|
|
4
21
|
|
|
5
22
|
Initial implementation of Upserve update distribution.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Serve Tauri v2 update endpoints using your existing static manifest and signatur
|
|
|
6
6
|
npm install @neplex/upserve @neplex/upserve-github @neplex/upserve-tauri @hono/node-server
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Add `tauri()` to your application adapters. Publish `latest.json` and all referenced signed updater artifacts in the same release. Point the updater at `/editor/stable/tauri/{{target}}/{{arch}}/{{current_version}}`. Keep your existing signing keys in the release pipeline.
|
|
9
|
+
Add `tauri()` to your application adapters. Publish `latest.json` and all referenced signed updater artifacts in the same release. Manifest URLs may be public download URLs or the GitHub REST asset URLs written by the Tauri release action. Point the updater at `/editor/stable/tauri/{{target}}/{{arch}}/{{current_version}}`. Keep your existing signing keys in the release pipeline.
|
|
10
10
|
|
|
11
11
|
Read the [guide](https://upserve.neplex.dev/docs/tauri) for a complete example and supported behavior, or browse the [documentation source](https://github.com/neplextech/upserve/tree/main/apps/docs/content/docs). During initial private development, packages may not be published yet; use the repository checkout instructions in the quick start.
|
|
12
12
|
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,10 @@ import * as _$hono_types0 from "hono/types";
|
|
|
3
3
|
import * as _$hono from "hono";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Tauri v2 manifest selection. Signature contents are passed through unchanged. Platform
|
|
8
|
+
* URLs must equal a release asset's canonical URL or one of its aliases.
|
|
9
|
+
*/
|
|
7
10
|
interface TauriOptions {
|
|
8
11
|
/** Published manifest asset name; defaults to the integration standard filename. */
|
|
9
12
|
manifest?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UpserveError, defineAdapter, newer, validVersion } from "@neplex/upserve";
|
|
1
|
+
import { UpserveError, defineAdapter, findAssetByUrl, newer, validVersion } from "@neplex/upserve";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
/** Expose /tauri/latest.json and /tauri/:target/:arch/:current. */
|
|
4
4
|
function tauri(options = {}) {
|
|
@@ -18,7 +18,7 @@ function tauri(options = {}) {
|
|
|
18
18
|
if (!raw || typeof raw !== "object") throw new UpserveError("invalid", "Invalid Tauri platform");
|
|
19
19
|
const item = raw;
|
|
20
20
|
if (typeof item.url !== "string" || typeof item.signature !== "string" || !item.signature.trim()) throw new UpserveError("invalid", "Tauri signature missing");
|
|
21
|
-
const asset = release.assets
|
|
21
|
+
const asset = findAssetByUrl(release.assets, item.url);
|
|
22
22
|
if (!asset) throw new UpserveError("invalid", "Tauri binary missing from release");
|
|
23
23
|
platforms[target] = {
|
|
24
24
|
signature: item.signature,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neplex/upserve-tauri",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Composable application update distribution for Fetch runtimes",
|
|
5
5
|
"homepage": "https://upserve.neplex.dev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"hono": "^4.13.22",
|
|
31
|
-
"@neplex/upserve": "0.
|
|
31
|
+
"@neplex/upserve": "0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=22.13"
|