Skip to content

Commit bf29b9a

Browse files
declare s3 bucket for update
1 parent 6cb73c8 commit bf29b9a

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

cli/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@
7373
"macos": {
7474
"identifier": "com.powersync.cli"
7575
},
76+
"update": {
77+
"s3": {
78+
"bucket": "powersync-cli-staging",
79+
"host": "https://powersync-cli-staging.s3.eu-west-1.amazonaws.com",
80+
"folder": "releases",
81+
"xz": true
82+
}
83+
},
7684
"plugins": [
7785
"@oclif/plugin-help",
7886
"@oclif/plugin-plugins",

patches/oclif@4.22.81.patch

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ index 9a255a011cbbfb34a337f67bcbabbbffdaf65c11..006b8eb0ee5432825cf48287c5e46077
5555
if (windows && windows.name && windows.keypath) {
5656
await signWindows(o, arch, config, windows);
5757
diff --git a/lib/tarballs/build.js b/lib/tarballs/build.js
58-
index cbae61146324ef6ac0935c625b7858007ac238d1..4351bc8681601017e590fd862c0944e34e3d2a7f 100644
58+
index cbae61146324ef6ac0935c625b7858007ac238d1..4f3f145fc148ef9b76c61b27f99db6b7eb734b58 100644
5959
--- a/lib/tarballs/build.js
6060
+++ b/lib/tarballs/build.js
6161
@@ -69,9 +69,23 @@ const copyCoreYarnFiles = async (yarnRootPath, workspacePath) => {
@@ -85,7 +85,17 @@ index cbae61146324ef6ac0935c625b7858007ac238d1..4351bc8681601017e590fd862c0944e3
8585
await (0, bin_1.writeBinScripts)({
8686
baseWorkspace: c.workspace(),
8787
config: c.config,
88-
@@ -159,10 +173,11 @@ const addDependencies = async (c) => {
88+
@@ -132,7 +146,8 @@ const updatePJSON = async (c) => {
89+
pjson.oclif = pjson.oclif ?? {};
90+
pjson.oclif.update = pjson.oclif.update ?? {};
91+
pjson.oclif.update.s3 = pjson.oclif.update.s3 ?? {};
92+
- pjson.oclif.update.s3.bucket = c.s3Config.bucket;
93+
+ pjson.oclif.update.s3.bucket = c.s3Config.bucket ?? pjson.oclif.update.s3.bucket;
94+
+ pjson.oclif.update.s3.host = c.updateConfig.s3?.host ?? pjson.oclif.update.s3.host;
95+
await (0, fs_extra_1.writeJSON)(pjsonPath, pjson, { spaces: 2 });
96+
};
97+
const addDependencies = async (c) => {
98+
@@ -159,10 +174,11 @@ const addDependencies = async (c) => {
8999
}
90100
}
91101
}

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)