-
Notifications
You must be signed in to change notification settings - Fork 24
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
Quickly Launch Different Chrome for Privacy Sandbox Demo #211
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Instead of downloading the script, shouldn't they be able to run using npm script ? Something like this? In "scripts": {
"launch-chrome:default": "bash ./bin/chrome_launcher/chrome-default.sh",
"launch-chrome:default-ps": "bash ./bin/chrome_launcher/chrome-default-ps.sh",
"launch-chrome:3pcd": "bash ./bin/chrome_launcher/chrome-3pcd.sh",
"launch-chrome:3pcd-ps": "bash ./bin/chrome_launcher/chrome-3pcd-ps.sh",
"launch-chrome:chip": "bash ./bin/chrome_launcher/chrome-chip.sh"
} and then run npm run launch-chrome:default
npm run launch-chrome:default-ps
npm run launch-chrome:3pcd
... |
@sayedtaqui If we go with |
Well, we do expect the user to have those for running CLI commands (example npm run cli -- -u https://bbc.com). However, if we are only expecting them to download the file, it doesn't make sense to keep it in the repo because it has no relation to the rest of the codebase. Instead, it can simply be a link to a gist file in the readme. Although, I still think it would be helpful to include the npm command as well. |
Let's go with the simple command to start and we may add the npm script as
well later; although the latter may not be needed.
…On Tue, Oct 24, 2023, 18:53 Sayed Taqui ***@***.***> wrote:
@sayedtaqui <https://github.com/sayedtaqui>
If we go with npm based commands, it will require the users to install
git, clone the code, install node, install npm, then install npm
dependencies, then they'll be able to run the commands. While going with
directly having the script, they only need to run the script once, whether
they have git, node or npm installed, it won't matter.
Well, we do expect the user to have those for running CLI commands
(example npm run cli -- -u https://bbc.com). However, if we are only
expecting them to download the file, it doesn't make sense to keep it in
the repo because it has no relation to the rest of the codebase. Instead,
it can simply be a link to a gist file in the readme. Although, I still
think it would be helpful to include the npm command as well.
—
Reply to this email directly, view it on GitHub
<#211 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD3R2IQYHUWYAPNHBXUDPTYA66LRAVCNFSM6AAAAAA6NSCXFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGE4TMOBSHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
Also, can we have a wrapper around to check whether the file exists or not before sourcing it in the
|
@gagan0123 I'd modify script so its wont need To test please clear old source line from
Its will create |
The URL https://rt.cx/gpsat is still pointing to the old version of the install script, can we please update this? |
@MiteshShah Can you please move these files in a new |
Thanks, now its loading the correct install script, the redirection was cached in my browser so I was still seeing the old install script. @sayedtaqui Can you provide more information where to create a new Do you mean in the repo, we should create a |
Yes, please create a |
@sayedtaqui Moved script to |
bin/chrome_launcher.sh
Outdated
extension_setup | ||
launch_chrome \ | ||
--install-autogenerated-theme='150,220,150' \ | ||
--load-extension="/tmp/ps-analysis-tool-v0.3.0/extension/" |
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.
Modify it to get the version from the ps_analysis_tool_version
variable that we defined
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
bin/chrome_launcher.sh
Outdated
launch_chrome \ | ||
--install-autogenerated-theme='255,51,51' \ | ||
--test-third-party-cookie-phaseout \ | ||
--load-extension="/tmp/ps-analysis-tool-v0.3.0/extension" \ |
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.
Modify it to get the version from the ps_analysis_tool_version
variable that we defined
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
I added two commits for:
Can you please review the code, test it out and improve if needed? |
@gagan0123 All looks good to me. |
bin/chrome_launcher.sh
Outdated
|
||
# Download Extension | ||
extension_setup() { | ||
ps_analysis_tool_version=v0.3.1 |
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.
v0.3.2 just released today
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!
Updating extension version
…ersion-0-3-2 Update extension version onchrome_launcher.sh
When using MacOS, the directory |
@gagan0123 we can use |
1 similar comment
@gagan0123 we can use |
Update PSAT extension version to v0.4.1 for quick launcher CLI
@gagan0123 this looks good to me. Lets merge as it will also address #409 |
I missed the last commit, so added it in this PR: #416 |
Description
This script helps to launch different Chrome ( Macintosh and Linux platforms) quickly for Privacy Sandbox Demo.
Testing Instructions
Above command call
install.sh
which downloadchrome_launcher.sh
and source it into.zshrc
or.bashrc
also automatically source into the current terminal session as well.