camstack 1.2.30 → 1.2.31
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/dist/cli.js
CHANGED
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-PT4JLGCT.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-PT4JLGCT.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -401038,6 +401038,52 @@ var require_boot_config = __commonJS({
|
|
|
401038
401038
|
}
|
|
401039
401039
|
});
|
|
401040
401040
|
|
|
401041
|
+
// ../../server/backend/dist/core/app-links/well-known-app-links.js
|
|
401042
|
+
var require_well_known_app_links = __commonJS({
|
|
401043
|
+
"../../server/backend/dist/core/app-links/well-known-app-links.js"(exports) {
|
|
401044
|
+
"use strict";
|
|
401045
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
401046
|
+
exports.buildAppLinkFiles = buildAppLinkFiles;
|
|
401047
|
+
exports.parseCertFingerprints = parseCertFingerprints;
|
|
401048
|
+
var APPLE_TEAM_ID = "C3F24V5NS5";
|
|
401049
|
+
var BUNDLE_ID = "com.apocaliss92.camstack";
|
|
401050
|
+
var BUNDLE_ID_DEV = "com.apocaliss92.camstack.dev";
|
|
401051
|
+
var VIEWER_COMPONENT = "/viewer/camstack/*";
|
|
401052
|
+
function buildAppLinkFiles(androidCertSha256) {
|
|
401053
|
+
const appIds = [`${APPLE_TEAM_ID}.${BUNDLE_ID}`, `${APPLE_TEAM_ID}.${BUNDLE_ID_DEV}`];
|
|
401054
|
+
return {
|
|
401055
|
+
appleAppSiteAssociation: {
|
|
401056
|
+
applinks: {
|
|
401057
|
+
apps: [],
|
|
401058
|
+
details: [
|
|
401059
|
+
{
|
|
401060
|
+
appIDs: appIds,
|
|
401061
|
+
components: [{ "/": VIEWER_COMPONENT, comment: "Viewer deep links" }]
|
|
401062
|
+
},
|
|
401063
|
+
// Legacy `paths` block for pre-iOS-13 parsers, as Zentik ships.
|
|
401064
|
+
{ appID: appIds[0], paths: [VIEWER_COMPONENT] }
|
|
401065
|
+
]
|
|
401066
|
+
},
|
|
401067
|
+
webcredentials: { apps: appIds }
|
|
401068
|
+
},
|
|
401069
|
+
assetLinks: [BUNDLE_ID, BUNDLE_ID_DEV].map((pkg) => ({
|
|
401070
|
+
relation: ["delegate_permission/common.handle_all_urls"],
|
|
401071
|
+
target: {
|
|
401072
|
+
namespace: "android_app",
|
|
401073
|
+
package_name: pkg,
|
|
401074
|
+
sha256_cert_fingerprints: [...androidCertSha256]
|
|
401075
|
+
}
|
|
401076
|
+
}))
|
|
401077
|
+
};
|
|
401078
|
+
}
|
|
401079
|
+
function parseCertFingerprints(raw) {
|
|
401080
|
+
if (raw === void 0)
|
|
401081
|
+
return [];
|
|
401082
|
+
return raw.split(",").map((s) => s.trim().toUpperCase()).filter((s) => /^[0-9A-F]{2}(:[0-9A-F]{2}){31}$/.test(s));
|
|
401083
|
+
}
|
|
401084
|
+
}
|
|
401085
|
+
});
|
|
401086
|
+
|
|
401041
401087
|
// ../../server/backend/dist/core/addon/addon-call-gateway.js
|
|
401042
401088
|
var require_addon_call_gateway = __commonJS({
|
|
401043
401089
|
"../../server/backend/dist/core/addon/addon-call-gateway.js"(exports) {
|
|
@@ -408306,6 +408352,7 @@ var require_main4 = __commonJS({
|
|
|
408306
408352
|
var integration_id_backfill_1 = require_integration_id_backfill();
|
|
408307
408353
|
var post_boot_service_1 = require_post_boot_service();
|
|
408308
408354
|
var addon_package_service_1 = require_addon_package_service();
|
|
408355
|
+
var well_known_app_links_1 = require_well_known_app_links();
|
|
408309
408356
|
var addon_registry_service_1 = require_addon_registry_service();
|
|
408310
408357
|
var addon_bridge_service_1 = require_addon_bridge_service();
|
|
408311
408358
|
var addon_pages_service_1 = require_addon_pages_service();
|
|
@@ -409002,6 +409049,14 @@ var require_main4 = __commonJS({
|
|
|
409002
409049
|
const adminUiState = { staticDir: null, indexPath: null };
|
|
409003
409050
|
const viewerUiState = { staticDir: null, indexPath: null };
|
|
409004
409051
|
const VIEWER_MOUNT = "/viewer/camstack";
|
|
409052
|
+
{
|
|
409053
|
+
const { appleAppSiteAssociation, assetLinks } = (0, well_known_app_links_1.buildAppLinkFiles)((0, well_known_app_links_1.parseCertFingerprints)(process.env["CAMSTACK_ANDROID_CERT_SHA256"]));
|
|
409054
|
+
const aasa = JSON.stringify(appleAppSiteAssociation);
|
|
409055
|
+
const assetlinks = JSON.stringify(assetLinks);
|
|
409056
|
+
fastify.get("/.well-known/apple-app-site-association", async (_request, reply) => reply.type("application/json").send(aasa));
|
|
409057
|
+
fastify.get("/apple-app-site-association", async (_request, reply) => reply.type("application/json").send(aasa));
|
|
409058
|
+
fastify.get("/.well-known/assetlinks.json", async (_request, reply) => reply.type("application/json").send(assetlinks));
|
|
409059
|
+
}
|
|
409005
409060
|
fastify.get("/viewer", async (_request, reply) => reply.redirect(`${VIEWER_MOUNT}/`));
|
|
409006
409061
|
fastify.get("/viewer/", async (_request, reply) => reply.redirect(`${VIEWER_MOUNT}/`));
|
|
409007
409062
|
fastify.get("/webrtc-test.html", async (_request, reply) => {
|