Skip to content

Commit

Permalink
consolidating firefox and chrome and opera versions, moving back to '…
Browse files Browse the repository at this point in the history
…main'
  • Loading branch information
evandor committed Sep 1, 2024
1 parent e147112 commit 938995a
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .run/build bex firefox.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="build bex firefox" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="build bex firefox" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"private": true,
"scripts": {
"dev": "quasar dev -m bex",
"dev-firefox": "scripts/dev.sh firefox",
"dev-edge": "scripts/dev.sh edge",
"dev-opera": "scripts/dev.sh opera",
"dev spa (only for testing)": "quasar dev -m spa",
"dev pwa": "quasar dev -m pwa",
"dev ssr": "quasar dev -m ssr",
Expand All @@ -22,6 +19,7 @@
"build bex (dev)": "mv .env .env.tmp && cp .dev.env .env && quasar build -m bex && mv .env.tmp .env",
"build bex (prd)": "mv .env .env.tmp && cp .prd.env .env && quasar build -m bex && mv .env.tmp .env",
"build bex (publish)": "quasar build -m bex",
"build bex firefox": "scripts/build.sh firefox",
"build pwa": "quasar build -m pwa",
"build electron (prd)": "mv .env .env.tmp && cp .prd.env .env && quasar build -m electron && mv .env.tmp .env",
"build electron (pubmodule foreach lish)": "quasar build -m electron --debug --publish always",
Expand Down
32 changes: 32 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
VERSION="$1"
if [ $# -eq 0 ]
then
echo "run with 'chrome', 'firfox', 'edge' or 'opera' as parameter"
exit
fi

if [ "$1" = "chrome" ]; then
manifest="manifest-chrome.json"
elif [ "$1" = "firefox" ]; then
manifest="manifest-firefox.json"
elif [ "$1" = "edge" ]; then
manifest="manifest-edge.json"
elif [ "$1" = "opera" ]; then
manifest="manifest-opera.json"
fi

echo "using manifest src-bex/$manifest and .dev.env"
mv src-bex/manifest.json src-bex/manifest.tmp
mv .env .env.tmp

cp src-bex/$manifest src-bex/manifest.json
cp .dev.env .env

quasar build -m bex

echo "output folder dist/bex-$1"
cp -R dist/bex/ "dist/bex-$1/"

mv src-bex/manifest.tmp src-bex/manifest.json
mv .env.tmp .env
11 changes: 11 additions & 0 deletions scripts/copyTo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
VERSION="$1"
if [ $# -eq 0 ]
then
echo "run with foldername"
exit
fi

cp -r dist/bex "dist/$1"

exit 0
9 changes: 8 additions & 1 deletion scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ elif [ "$1" = "opera" ]; then
fi

mv src-bex/manifest.json src-bex/manifest.tmp
echo "using manifest src-bex/$manifest"
cp src-bex/$manifest src-bex/manifest.json
quasar dev -m bex
mv src-bex/manifest.tmp src-bex/manifest.json
#echo "output folder dist/bex-$1"

# does not seem to be executed..., commenting out
#cp -r dist/bex "dist/bex-$1"
#mv src-bex/manifest.tmp src-bex/manifest.json

exit 0
2 changes: 0 additions & 2 deletions src-bex/manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
"activeTab",
"alarms",
"scripting",
"sidePanel",
"contextMenus",
"bookmarks"
],
"optional_permissions": [
"pageCapture",
"notifications",
"webRequest"
],
Expand Down

0 comments on commit 938995a

Please sign in to comment.