Skip to content

Commit

Permalink
Fix dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jan 21, 2024
1 parent 22efba2 commit 8c100c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ pnpm build
TARGET="$1"

if [[ "$TARGET" == "all" ]]; then
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs \
node bin/publish-extension.cjs \
--chrome-zip extension/chrome.zip \
--firefox-zip extension/firefox.zip \
--firefox-sources-zip extension/firefox.zip \
--edge-zip extension/chrome.zip
elif [[ "$TARGET" == "chrome" ]]; then
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs --chrome-zip extension/chrome.zip
node bin/publish-extension.cjs --chrome-zip extension/chrome.zip
elif [[ "$TARGET" == "firefox" ]]; then
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs --firefox-zip extension/firefox.zip --firefox-sources-zip extension/firefox.zip
node bin/publish-extension.cjs --firefox-zip extension/firefox.zip --firefox-sources-zip extension/firefox.zip
elif [[ "$TARGET" == "edge" ]]; then
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs --edge-zip extension/chrome.zip
node bin/publish-extension.cjs --edge-zip extension/chrome.zip
elif [[ "$TARGET" == "help" ]]; then
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs --help
node bin/publish-extension.cjs --help
else
echo
echo "Run 'pnpm dev:chrome' or 'pnpm dev:firefox' or 'pnpm dev:edge' or 'pnpm dev:all'"
pnpm env-cmd -f .env.submit node bin/publish-extension.cjs
fi
node bin/publish-extension.cjs
fi

0 comments on commit 8c100c6

Please sign in to comment.