Skip to content

Commit

Permalink
automate build
Browse files Browse the repository at this point in the history
  • Loading branch information
yudax42 committed Dec 17, 2021
1 parent 70cdf11 commit 5ab73dc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
themes
build
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh



# Copy neccesary files
mkdir ext
cp -r ./assets ./icons ./js ./background.js ./options.html ./popup.html ./manifest.json ./ext

cd ext
# Generate Firefox .xpi
7z a -r build/firefox.xpi *

# Generate Chrome .crx
7z a -r build/chrome.zip *

# delete uneccesary files
mv build ../
rm -rf ../ext
2 changes: 1 addition & 1 deletion js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getTheme = async () => {
if (path && name && style) {
const global = await sendMessage({
query: "getTheme",
url: `${BASE_URL}/${style}/global.min.css?random=${Math.random()}`,
url: `${BASE_URL}/${style}/global.css?random=${Math.random()}`,
});
const theme = await sendMessage({
query: "getTheme",
Expand Down
37 changes: 0 additions & 37 deletions manifest-firefox.json

This file was deleted.

2 changes: 0 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
},
"options_ui": {
"page": "options.html",
"browser_style": true,
"chrome_style": true,
"open_in_tab": true
}
}
2 changes: 1 addition & 1 deletion themes
Submodule themes updated 2 files
+50 −50 dark/global.css
+49 −49 light/global.css

0 comments on commit 5ab73dc

Please sign in to comment.