Skip to content

Commit 821e5a2

Browse files
armfazhthibmeu
authored andcommitted
Update label in templates.
1 parent 483fe84 commit 821e5a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/browser-extension/policy/com.google.Chrome.managed.plist.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>installation_mode</key>
1010
<string>blocked</string>
1111
</dict>
12-
<key>********************************</key>
12+
<key>EXTENSION_ID_REPLACED_BY_NPM_RUN_BUNDLE_CHROME</key>
1313
<dict>
1414
<key>installation_mode</key>
1515
<string>force_installed</string>

examples/browser-extension/policy/policy.json.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ExtensionSettings": {
3-
"********************************": {
3+
"EXTENSION_ID_REPLACED_BY_NPM_RUN_BUNDLE_CHROME": {
44
"installation_mode": "force_installed",
55
"update_url": "http://localhost:8000/update.xml"
66
}

examples/browser-extension/scripts/build_web_artifacts.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { subtle } = globalThis.crypto;
2020
import pkg from '../package.json' with { type: "json" };
2121

2222
function makePolicy(extensionID) {
23-
const MarkerString = "********************************";
23+
const MarkerString = "EXTENSION_ID_REPLACED_BY_NPM_RUN_BUNDLE_CHROME"
2424
const policyPath = path.join(path.dirname("."), "policy");
2525
if (!fs.existsSync(policyPath)) {
2626
fs.mkdirSync(policyPath, { recursive: true });
@@ -45,9 +45,7 @@ function setManifestVersion(version) {
4545
fs.writeFileSync(manifestOutputPath, JSON.stringify(manifest, null, 2));
4646
}
4747

48-
49-
(async function main() {
50-
48+
async function main() {
5149
const distPath = path.join(path.dirname("."), "dist", "web-ext-artifacts");
5250
if (!fs.existsSync(distPath)) {
5351
fs.mkdirSync(distPath, { recursive: true });
@@ -90,4 +88,6 @@ function setManifestVersion(version) {
9088
makePolicy(extensionID);
9189

9290
console.log(`Build Extension with ID: ${extensionID}`)
93-
})();
91+
};
92+
93+
await main();

0 commit comments

Comments
 (0)