Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovenoboyo committed Dec 30, 2024
1 parent 2125cf8 commit 55b8791
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
console.log('created release', { release });
for (let file of await fs.readdir('./')) {
console.log('uploading', file);
if (file.endsWith('.mstx') || file.endsWith('.json')) {
console.log('uploading', file);
await github.repos.uploadReleaseAsset({
owner, repo,
release_id: release.data.id,
Expand Down
3 changes: 2 additions & 1 deletion gen-manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def consolidate_manifest():
# Extract and parse config.json
with zip_ref.open('config.json') as config_file:
config_data = json.load(config_file)
del config_data["customCSS"]
if 'customCSS' in config_data['theme']:
del config_data["theme"]["customCSS"]

# Extract the id and use the entire config.json as value
if 'id' in config_data:
Expand Down
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"textSecondary": "#565656",
"textInverse": "#000000",
"accent": "#65CB88",
"divider": "rgba(79, 79, 79, 0.67)",
"customCSS": "/tmp/theme-unpacked-2ce9ae53-1591-4d87-925e-b45f0adf8a64/custom.css"
"divider": "rgba(79, 79, 79, 0.67)"
}
}
}

0 comments on commit 55b8791

Please sign in to comment.