Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
Brian Clifton edited this page Apr 4, 2018 · 5 revisions

Brave's fork of pdf.js

The release process

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

Part 1 - build

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)  

Part 2 - package

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  

Part 3 - manual testing

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:

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  

Part 4 - upload

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

 

Part 5

Flush fastly by running the brave-updates-purge-all job on jenkins.brave.com

Clone this wiki locally