Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): Adds automated release package creation script #388

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Aug 27, 2024

This pull request introduces a new script, build.sh, to address inconsistencies in how Chrome and Firefox handle the favicon_url key within the search_provider object. This script automates the creation of release packages specific to each browser.

Key changes:

  • Ensures consistent behavior across Chrome and Firefox by addressing the favicon_url inconsistency.

  • Introduces two new commands in package.json:

    • npm run release-chrome: Creates a Chrome-compatible release package within a dedicated build folder.
    • npm run release-firefox: Creates a Firefox-compatible release package within the same build folder.
  • Removes the manual creation of zip files, streamlining the release process.

  • Updates the README.md file to reflect new build steps

@ERosendo ERosendo added no changelog Override Check Changelog Action. and removed no changelog Override Check Changelog Action. labels Aug 27, 2024
@ERosendo ERosendo marked this pull request as ready for review August 27, 2024 21:05
@ERosendo ERosendo requested a review from mlissner August 27, 2024 21:05
@ERosendo ERosendo force-pushed the feat-add-script-to-create-release-packages branch from 90f34cd to 807d22d Compare August 27, 2024 21:14
@ERosendo ERosendo force-pushed the feat-add-script-to-create-release-packages branch from 807d22d to e92ac27 Compare August 27, 2024 21:22
Copy link
Member

@mlissner mlissner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I fear and loathe bash, so I wound up insulting it a bit and adding a number of comments. Easy stuff though. LGTM once you're ready.

scripts/build.sh Show resolved Hide resolved
scripts/build.sh Outdated
mkdir -p build/release/

# 4. Clean up any existing release zip
rm -f build/release/$browserType-release.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to force this? Scary stuff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to force this?

Not really, I used the -f flag to suppress the exit code when the file couldn't be found. However, I've modified the command to handle missing files differently. Thanks for your comment.

scripts/build.sh Show resolved Hide resolved
scripts/build.sh Outdated Show resolved Hide resolved
scripts/build.sh Outdated Show resolved Hide resolved
@ERosendo ERosendo requested a review from mlissner August 27, 2024 23:35
@mlissner mlissner merged commit 7fd4579 into feat-upgrade-to-manifest-v3 Aug 27, 2024
4 checks passed
@mlissner mlissner deleted the feat-add-script-to-create-release-packages branch August 27, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants