@upfluxhq/cli 0.1.0-beta.4 → 1.0.0

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.
@@ -203,6 +203,33 @@ assetsBaseDir, iosAssetsBaseDir, androidAssetsBaseDir) {
203
203
  contentType: guessContentType(assetPath),
204
204
  });
205
205
  }
206
+ // Add upflux.json config files for both platforms
207
+ if (iosAssetsBaseDir) {
208
+ const iosConfigPath = path.join(iosAssetsBaseDir, "upflux.json");
209
+ if (fs.existsSync(iosConfigPath)) {
210
+ files.push({
211
+ type: "asset",
212
+ platform: "ios",
213
+ filename: "upflux.json",
214
+ relativePath: "upflux.json",
215
+ localPath: iosConfigPath,
216
+ contentType: "application/json",
217
+ });
218
+ }
219
+ }
220
+ if (androidAssetsBaseDir) {
221
+ const androidConfigPath = path.join(androidAssetsBaseDir, "upflux.json");
222
+ if (fs.existsSync(androidConfigPath)) {
223
+ files.push({
224
+ type: "asset",
225
+ platform: "android",
226
+ filename: "upflux.json",
227
+ relativePath: "upflux.json",
228
+ localPath: androidConfigPath,
229
+ contentType: "application/json",
230
+ });
231
+ }
232
+ }
206
233
  }
207
234
  else {
208
235
  // Single-bundle mode
@@ -229,6 +256,19 @@ assetsBaseDir, iosAssetsBaseDir, androidAssetsBaseDir) {
229
256
  contentType: guessContentType(assetPath),
230
257
  });
231
258
  }
259
+ // Add upflux.json config file
260
+ if (assetsBaseDir) {
261
+ const configPath = path.join(assetsBaseDir, "upflux.json");
262
+ if (fs.existsSync(configPath)) {
263
+ files.push({
264
+ type: "asset",
265
+ filename: "upflux.json",
266
+ relativePath: "upflux.json",
267
+ localPath: configPath,
268
+ contentType: "application/json",
269
+ });
270
+ }
271
+ }
232
272
  }
233
273
  return files;
234
274
  }
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const program = new commander_1.Command();
14
14
  program
15
15
  .name("upflux")
16
16
  .description("Upflux CLI for OTA updates")
17
- .version("0.1.0-beta.1");
17
+ .version("1.0.0");
18
18
  program.addCommand(login_1.default);
19
19
  program.addCommand(logout_1.default);
20
20
  program.addCommand(release_1.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upfluxhq/cli",
3
- "version": "0.1.0-beta.4",
3
+ "version": "1.0.0",
4
4
  "description": "Upflux CLI for managing OTA updates",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",