-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Rebrand candidate files #263
Conversation
Implements #262
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few "-html5" strings that we can not modify for now (see review details). I would advise to rename what we can for now, and create new issues for what should be done later
manifest.json
Outdated
@@ -29,7 +29,7 @@ | |||
|
|||
"applications": { | |||
"gecko": { | |||
"id": "kiwix-html5[email protected]" | |||
"id": "kiwix-js[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for now, we need to keep this id untouched, else Firefox will probably consider the new versions as a different addon, and will probably won't do the upgrade for end-users
scripts/package_firefox_extension.sh
Outdated
@@ -53,7 +53,7 @@ if [ "${TAG}zz" == "zz" ]; then | |||
else | |||
# When packaging a public version, we need to prepare a 'listed' extension package to submit to Mozilla | |||
echo "Replacing the Firefox 'unlisted' extension id by the 'listed' one to be accepted by Mozilla" | |||
sed -i -e "s/kiwix-html5[email protected]/kiwix-html5[email protected]/" manifest.json | |||
sed -i -e "s/kiwix-js[email protected]/kiwix-js[email protected]/" manifest.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be kept as it is for now (see previous comment on the Firefox addon id)
scripts/package_chrome_extension.sh
Outdated
@@ -18,7 +18,7 @@ cd .. | |||
if [ "${TAG}zz" == "zz" ]; then | |||
# Package the extension with Chromium, if we're not packaging a public version | |||
echo "Signing the extension for Chrome with a local Chromium, version $VERSION" | |||
chromium-browser --no-sandbox --pack-extension=tmp --pack-extension-key=./scripts/kiwix-html5.pem | |||
chromium-browser --no-sandbox --pack-extension=tmp --pack-extension-key=./scripts/kiwix-js.pem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one will be more complicated to change, because it involves a "secret" file (kiwix-html5.pem), which is not commited, and included (for Travis) in an encrypted form inside secret_files.tar.gz.enc.
README.md
Outdated
@@ -1,4 +1,4 @@ | |||
kiwix-html5 | |||
kiwix-JS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe with an uppercase on the K, to follow #248 (comment)
OK, I've reverted those changes. @mossroy please double check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still one occurrence of the string "-html5" that we need to keep
scripts/package_firefox_extension.sh
Outdated
@@ -53,7 +53,7 @@ if [ "${TAG}zz" == "zz" ]; then | |||
else | |||
# When packaging a public version, we need to prepare a 'listed' extension package to submit to Mozilla | |||
echo "Replacing the Firefox 'unlisted' extension id by the 'listed' one to be accepted by Mozilla" | |||
sed -i -e "s/[email protected]/kiwix-html5[email protected]/" manifest.json | |||
sed -i -e "s/[email protected]/kiwix-js[email protected]/" manifest.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be modified either, as "[email protected]" is the id known by Mozilla to distribute the addon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This looks good to me. |
Well, I did the "rebase -i master" command on my local machine, changed the commits to "f" (other than the first, which I kept as "p"), saved, got the response "Successfully rebased and updated refs/heads/Rebrand-candidate-files", then pushed to the server. But it doesn't look any different here. How do I know that the rebase and squash worked? Is it just that some of the earlier commits now have "Show outdated" next to them? Also, is there any advantage in squashing locally rather than using the "squash and merge" command here (down arrow next to "Merge pull request" button)? |
The file changes are OK for me, but the commits are not squashed. Locally on your computer, if you type "git log", do you still see the "revert" commits you did? Doing the squash from github would work in this case. It means the squash will only be done on github, not in your local branch (which should not be an issue in this case). Doing the squash locally have a few advantages in my opinion :
|
I think I must have messed something up. They're squashed on my local machine, but "git push --force Rebrand-candidate files" results in:
The suggested command (with substituted branch name) results in:
I can't retrace what I did the first time I attempted this, and clearly my local repository is in a strange state now. So to avoid doing something catastrophic, I'm going to squash and merge these changes, and re-clone my repo in a clean state! Will try again next time... Thanks for your help. |
All right, no problem |
You also can delete the branch, with the button github provides here |
Ah yes, sorry I forgot. Done now. |
Implements #262