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

Fix unreplaced CSP policy value due to sed command in package.sh #404

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

nlydv
Copy link
Contributor

@nlydv nlydv commented Aug 23, 2021

In the pre-built macOS release, as well as when built from source, the console shows an "invalid CSP value: {{cspValue}}" error. I saw that the package.sh build script tries to use an incompatible GNU version of sed's in-place replacement option.

To make it interoperable for both BSD and GNU sed versions, I changed it to make a .tmp backup of the original file and then delete it right after.

Which defeats the purpose of the "in-place" option flag, but at least it works.

@rithvikvibhu
Copy link
Collaborator

Tested, works, app.html is updated, lgtm. Thanks @nlydv!

@rithvikvibhu rithvikvibhu merged commit ee43daa into kyokan:master Feb 1, 2022
@nlydv nlydv deleted the package-sed branch February 2, 2022 20:29
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.

3 participants