Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(ssh): run preview builds on remotes from the release archive #11319

Mergedjuliusmarmingemerged 7 commits intosea/runtime-archives fromrefs/pull/11319/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 134 additions and 0 deletions (loading 2).

x
0 of 5 viewed, 5 left
6 additions and 0 deletionsapps/desktop/src/main.tsModified
View file
@@ -17,6 +17,7 @@
​
import * as NetService from "@t3tools/shared/Net";
import { HostProcessArchitecture, HostProcessPlatform } from "@t3tools/shared/hostProcess";
+import { isArchiveDistributedVersion } from "@t3tools/shared/cliRelease";
import { resolveRemoteT3CliPackageSpec } from "@t3tools/ssh/command";
import type { RemoteT3RunnerOptions } from "@t3tools/ssh/tunnel";
import serverPackageJson from "../../server/package.json" with { type: "json" };
@@ -97,6 +98,11 @@
nodeEngineRange: serverPackageJson.engines.node,
};
+ // Preview builds ship as self-contained archives, so the remote runs the
+ // same version this app is on without Node or npm.
+ if (!environment.isDevelopment && isArchiveDistributedVersion(environment.appVersion)) {
Resolvedby juliusmarminge
+ return { archiveVersion: environment.appVersion };
+ }
return {
packageSpec: resolveRemoteT3CliPackageSpec({
appVersion: environment.appVersion,
126 additions and 0 deletionsapps/server/src/cli/sshHelper.tsAdded
View file
@@ -0,0 +1,126 @@
+// @effect-diagnostics nodeBuiltinImport:off
+// @effect-diagnostics globalTimers:off
+// @effect-diagnostics globalDateInEffect:off