pakstr 0.15.0 โ†’ 0.17.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.
Binary file
@@ -103,14 +103,17 @@ async function publishCommand(configPath, options = {}) {
103
103
  pubkeyHex,
104
104
  relayUrl: config.publish.relay,
105
105
  });
106
+ console.log(`๐Ÿ“‹ Existing kind-32267: ${existingAppMetadata?.id ?? "none"}`);
106
107
  const appMetadata = existingAppMetadata && (0, zapStore_1.isCurrentAppMetadataEvent)(existingAppMetadata, appPublish.appMetadata)
107
108
  ? existingAppMetadata
108
109
  : appPublish.appMetadata;
109
110
  if (appMetadata === appPublish.appMetadata) {
111
+ console.log("๐Ÿ“ค Publishing kind-32267...");
110
112
  await transport.publish(appMetadata, config.publish.relay);
113
+ console.log(`โœ… Published kind-32267: ${appMetadata.id}`);
111
114
  }
112
115
  else {
113
- console.log("๐Ÿ“ฑ Existing Zapstore application metadata is current; skipping kind 32267 publish.");
116
+ console.log("โœ… kind-32267 already up to date, skipping publish");
114
117
  }
115
118
  if (options.dryRun) {
116
119
  // No network, no APK required. Synthesize a stub descriptor so the events
@@ -13,6 +13,7 @@ const branding_1 = require("../android/branding");
13
13
  const icon_1 = require("../android/icon");
14
14
  const permissions_1 = require("../android/permissions");
15
15
  const splash_1 = require("../android/splash");
16
+ const DEFAULT_ICON_PATH = path_1.default.resolve(__dirname, "../../assets/logo.png");
16
17
  /**
17
18
  * Copy built web assets into the Android template and patch identity/branding.
18
19
  * Spec ยง5.2. Creates `assets/www/` from `webDir`, patches Gradle, app name,
@@ -30,9 +31,7 @@ async function prepareAndroidProject(opts) {
30
31
  generateRuntimeConfig(assetsTarget);
31
32
  (0, gradle_1.patchGradle)(androidRoot, app);
32
33
  (0, branding_1.patchAppName)(androidRoot, app.appName);
33
- if (app.icon) {
34
- await (0, icon_1.patchIcon)(androidRoot, app.icon, app.backgroundColor ?? "#FFFFFF", configDir);
35
- }
34
+ await (0, icon_1.patchIcon)(androidRoot, app.icon ?? DEFAULT_ICON_PATH, app.backgroundColor ?? "#FFFFFF", configDir);
36
35
  if (app.splash?.image) {
37
36
  await (0, splash_1.patchSplash)(androidRoot, app.splash.image, app.splash.background ?? "#FFFFFF", configDir);
38
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pakstr",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "CLI for packaging Nostr web apps into Android APKs",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -16,6 +16,7 @@
16
16
  "files": [
17
17
  "dist",
18
18
  "bin/cli.js",
19
+ "assets",
19
20
  "android-template/app",
20
21
  "android-template/gradle",
21
22
  "android-template/gradlew",