bundo-appgen 0.0.11 → 0.0.12

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.
package/lib/bin/bin.mjs CHANGED
@@ -785,6 +785,10 @@ function createAssetCatalogs(assetCatalogs, metadata) {
785
785
  recursive: true,
786
786
  force: true
787
787
  });
788
+ node_fs6.cpSync(node_path11.join(GlobalVars.appgenRoot.get(), "template", metadata.platform, "HelloWorld", "Assets.xcassets"), xcassetsPath, {
789
+ recursive: true,
790
+ force: true
791
+ });
788
792
  }
789
793
  if (node_fs6.existsSync(assetCatalogsTrackerFilePath)) {
790
794
  node_fs6.rmSync(assetCatalogsTrackerFilePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundo-appgen",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Native app generator for React Native macOS",
5
5
  "license": "MIT",
6
6
  "author": "RakaDoank <rakaaudira@gmail.com> (https://github.com/RakaDoank)",
@@ -5,6 +5,10 @@ import type {
5
5
  Config,
6
6
  } from "../../../../../index.mts"
7
7
 
8
+ import {
9
+ GlobalVars,
10
+ } from "../../../../_global-vars/index.mts"
11
+
8
12
  import {
9
13
  ConfigHelpers,
10
14
  } from "../../../_helpers/index.mts"
@@ -52,6 +56,22 @@ export function createAssetCatalogs(
52
56
  force: true,
53
57
  },
54
58
  )
59
+
60
+ // restore the Contents.json inside of the Assets.xcassets
61
+ node_fs.cpSync(
62
+ node_path.join(
63
+ GlobalVars.appgenRoot.get(),
64
+ "template",
65
+ metadata.platform,
66
+ "HelloWorld",
67
+ "Assets.xcassets",
68
+ ),
69
+ xcassetsPath,
70
+ {
71
+ recursive: true,
72
+ force: true,
73
+ },
74
+ )
55
75
  }
56
76
 
57
77
  if(node_fs.existsSync(assetCatalogsTrackerFilePath)) {