Skip to content

Commit 8a4157a

Browse files
authored
chore: Include worker script in bg service binary (#916)
1 parent 29aab06 commit 8a4157a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/build-binaries.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class BuildConfig {
6464
return this.path("background-charm-service", "src", "main.ts");
6565
}
6666

67+
bgCharmServiceWorkerPath() {
68+
return this.path("background-charm-service", "src", "worker.ts");
69+
}
70+
6771
toolshedEnvPath() {
6872
return this.path("toolshed", "COMPILED");
6973
}
@@ -164,6 +168,8 @@ async function buildBgCharmService(config: BuildConfig): Promise<void> {
164168
"compile",
165169
"--output",
166170
config.distPath("bg-charm-service"),
171+
"--include",
172+
config.bgCharmServiceWorkerPath(),
167173
"-A", // All permissions
168174
"--unstable-worker-options", // Required by bg-charm-service
169175
config.bgCharmServiceEntryPath(),

0 commit comments

Comments
 (0)