This page contains information about releasing browser extensions for different browsers and creating your developer accounts.
Releasing Browser Extensions
Chrome
Deployment to the Chrome web store happen automatically in CI when the bext/release
branch is updated.
Firefox
The release process for Firefox is currently semi-automated.
When the bext/release
branch is updated, our build pipeline will trigger a build for the Firefox extension (take a note of the commit sha, we'll need it later). The build will trigger this script which will create a bundle, sign it and upload it to the Google Cloud Storage. Once the bundle is created, we upload it to the Mozilla Add-on page. Once the bundle is uploaded, we need to upload the source code as well. On your local copy, navigate to sourcegraph/client/browser/scripts/create-source-zip.js
and modify the commitId
variable (use the sha from earlier). Once the variable is modified, run this script. It will generate a sourcegraph.zip
in the folder. Upload this zip to the Mozilla Add-on page and wait for approval.
Safari
The release process for Safari is currently not automated.
!! Before you start !!
- Navigate to https://appstoreconnect.apple.com/apps.
- You should see Sourcegraph for Safari.
- If not, you should first ask a team member to add you to our Apple Developer group. They can send you an invitation to create an account.
- Once you created a Sourcegraph associated developer account, make sure you add this account to Xcode accounts.
Steps:
- On your terminal navigate to
./sourcegraph/client/browser
. - Run the command
yarn run build
. - Build will generate an Xcode project under
./sourcegraph/client/browser/build/Sourcegraph for Safari
.- If you run into Xcode related errors, make sure that you've downloaded Xcode from the app store, opened it and accepted the license/terms agreements.
- Open the project using Xcode.
- Navigate to the General settings tab.
- Select the target
Sourcegraph for Safari
.- Change
App Category
toDeveloper Tools
. - Increment the
Version
&Build
numbers. You can find the current numbers on the App Store Connect page.
- Change
- Select the target
Sourcegraph for Safari Extension
.- Increment the
Version
&Build
numbers. You can find the current numbers on the App Store Connect page.
- Increment the
- Open
Assets.xcassets
from the file viewer and selectAppIcon
. We need to upload the 512x512px & 1024x1024px version icons for the Mac Store. Drag & drop the files from Drive to the corresponding slots. - On the menu bar, navigate to
Product > Achive
. Once successful, the Archives modal will appear. If you ever want to re-open this modal, you can do so by navigating to theWindow > Organizier
on the menu bar. - With the latest build selected, click on the
validate
button. - Choose
SOURCEGRAPH INC
from the dropdown and clicknext
. - Make sure uploading the symbols is checked and click
next
. - Make sure automatically managing the signing is checked and click
next
.- If this is your first time signing the package, you need to create your own local distribution key.
- Once the validation is complete, click on the
Distribute App
. - Make sure
App Store Connect
is selected and clicknext
. - Make sure upload is selected and click
next
. - Choose
SOURCEGRAPH INC
from the dropdown and clicknext
. - Make sure uploading the symbols is checked and click
next
. - Make sure automatically managing the signing is checked and click
next
. - Validate everything on the summary page and click
upload
- Once successful, you can navigate to the app store connect webpage and see a new version being processed on the
Mac Build Activity
tab. - Once processing is done, navigate to
App Store
tab and click on the blue + symbol, located next to themacOS App
label. - Enter the version number we've previously used on step 6 and click
create
. - A new version will appear on the left menu. Click on this new version and fill out the information textbox with a summary of updates.
- Scroll down to the build section and click on the blue + symbol.
- Select the build we've just uploaded and click done. (ignore compliance warning)
- Since our app communicates using https, we qualify for the export compliance. Select
Yes
and clicknext
. - Our use of encryption is exempt from regulations. Select
Yes
and clicknext
.
- Since our app communicates using https, we qualify for the export compliance. Select
- We can now click the
Save
button andSubmit for Review
.
Creating developer accounts for browser extensions
Firefox
- Create an account on https://addons.mozilla.org/en-US/developers/
- Once account is created, invite to Sourcegraph
- An email confirmation will be sent
- Once the the account has been created, navigate to this website and remove yourself from listed authors (https://addons.mozilla.org/en-US/developers/addon/sourcegraph-for-firefox/ownership)
Safari
- Ask a team member to add you to our Apple Developer group. They can send you an invitation from (App Store Connect)[https://appstoreconnect.apple.com/] portal.
Chrome
- Be part of google group. Google group has access to Chrome Web Store Developer Group for Chrome publishing permissions: [email protected]
- Go to https://chrome.google.com/webstore/devconsole/register?hl=en