-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Brave's fork of pdf.js
Because this is an official release process, this is something that only Brave Software employees will be executing. Some of the links may not work as they point to private repositories
git clone [email protected]:brave/pdf.js.git
cd pdf.js
npm install
gulp chromium
(I don’t have installed globally, so I ran ./node_modules/gulp/bin/gulp.js chromium
)
Follow process at https://developer.chrome.com/extensions/packaging#creating
- Launch Chrome and visit chrome://extensions
- Ensure "Developer mode" is checked (in top right)
- Click "Pack extension…" button
- Pick the directory that has the content (ex: /Users/clifton/Documents/pdf.js/build/chromium)
- Pick the signing key (in 1PW4T as
brave/PDFJS.pem
) - Click OK
- crx file is now created
To manually test a pdfjs version:
look at the PDF.JS version in build/chromium/manifest.json
(built above in Part 1)
cd into Extensions/jdbefljfgobbmcidnmpjamcbhnbphjnb
in the appData directory that will be used when testing (ex: ~/Libraries/Application Support/brave-development
) and remove the subdirectory which is a version number
make a new directory with the new version number from above
cp -rp ./build/chromium/*
into the new directory
At this point, you can perform manual testing. You can start of by trying these URL:
- http://www.orimi.com/pdf-test.pdf
- https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf
If that works great please proceed testing using this test template (thanks, @kjozwiak!) https://github.com/brave/browser-laptop/wiki/%5BDraft%5D-PDF.js-Manual-Test-Template
You'll need the heroku command line tools installed for this to work
Please note, the Chromium version and pdf.js version will change- make sure to update those before running any of these commands.
git clone [email protected]:brave/vault-updater.git
cd vault-updater
npm install
git remote add heroku-staged https://git.heroku.com/brave-laptop-updates-pre.git
git remote add heroku https://git.heroku.com/brave-laptop-updates.git
cd ..
git clone [email protected]:brave/release-tools.git
cd release-tools
npm install
node bin/updateExtensions.js --chromium=60.0.3112.113 --id jdbefljfgobbmcidnmpjamcbhnbphjnb --path ../pdf.js/build/chromium.crx --version 1.9.457 --upload --location=../vault-updater/data/
cd ../vault-updater
git commit -a
git push
git push heroku-staged
git push heroku
Flush fastly by running the brave-updates-purge-all
job on jenkins.brave.com