Skip to content

Commit

Permalink
chore(deploy): Release 23.0.8 (electron-updater@5.0.3) (#6814)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 24, 2022
1 parent 7af4c22 commit 1a73860
Show file tree
Hide file tree
Showing 30 changed files with 138 additions and 40 deletions.
10 changes: 0 additions & 10 deletions .changeset/chatty-zoos-attack.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-dancers-march.md

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [](https://github.com/electron-userland/electron-builder/compare/v23.0.7...v) (2022-04-24)


### Bug Fixes

* github provider prerelease check incorrectly casts undefined to String. Fixes [#6809](https://github.com/electron-userland/electron-builder/issues/6809) ([#6810](https://github.com/electron-userland/electron-builder/issues/6810)) ([817e68b](https://github.com/electron-userland/electron-builder/commit/817e68ba54f4fa60fec789fcfcfb527473a610fc))



# [](https://github.com/electron-userland/electron-builder/compare/v23.0.6...v) (2022-04-19)


Expand Down
20 changes: 10 additions & 10 deletions docs/configuration/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ Define <code>KEYGEN_TOKEN</code> environment variable.</p>
<a href="https://bitbucket.org/">https://bitbucket.org/</a>
Define <code>BITBUCKET_TOKEN</code> environment variable.</p>
<p>For converting an app password to a usable token, you can utilize this</p>
<pre><code class="hljs language-typescript"><span class="hljs-function"><span class="hljs-title">convertAppPassword</span>(<span class="hljs-params">owner: <span class="hljs-built_in">string</span>, token: <span class="hljs-built_in">string</span></span>)</span> {
<span class="hljs-keyword">const</span> base64encodedData = Buffer.from(<span class="hljs-string">`<span class="hljs-subst">${owner}</span>:<span class="hljs-subst">${token.trim()}</span>`</span>).toString(<span class="hljs-string">&quot;base64&quot;</span>)
<pre><code class="hljs language-typescript"><span class="hljs-title function_">convertAppPassword</span>(<span class="hljs-params">owner: <span class="hljs-built_in">string</span>, token: <span class="hljs-built_in">string</span></span>) {
<span class="hljs-keyword">const</span> base64encodedData = <span class="hljs-title class_">Buffer</span>.<span class="hljs-title function_">from</span>(<span class="hljs-string">`<span class="hljs-subst">${owner}</span>:<span class="hljs-subst">${token.trim()}</span>`</span>).<span class="hljs-title function_">toString</span>(<span class="hljs-string">&quot;base64&quot;</span>)
<span class="hljs-keyword">return</span> <span class="hljs-string">`Basic <span class="hljs-subst">${base64encodedData}</span>`</span>
}
</code></pre>
Expand Down Expand Up @@ -263,14 +263,14 @@ AWS credentials are required, please see <a href="http://docs.aws.amazon.com/sdk
Define <code>AWS_ACCESS_KEY_ID</code> and <code>AWS_SECRET_ACCESS_KEY</code> <a href="http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html">environment variables</a>.
Or in the <a href="http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html">~/.aws/credentials</a>.</p>
<p>Example configuration:</p>
<pre><code class="hljs language-json">{
<span class="hljs-attr">&quot;build&quot;</span>:
<span class="hljs-string">&quot;publish&quot;</span>: {
<span class="hljs-attr">&quot;provider&quot;</span>: <span class="hljs-string">&quot;s3&quot;</span>,
<span class="hljs-attr">&quot;bucket&quot;</span>: <span class="hljs-string">&quot;bucket-name&quot;</span>
}
}
}
<pre><code class="hljs language-json"><span class="hljs-punctuation">{</span>
<span class="hljs-attr">&quot;build&quot;</span><span class="hljs-punctuation">:</span>
<span class="hljs-attr">&quot;publish&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span>
<span class="hljs-attr">&quot;provider&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;s3&quot;</span><span class="hljs-punctuation">,</span>
<span class="hljs-attr">&quot;bucket&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;bucket-name&quot;</span>
<span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">}</span>
</code></pre>
<ul>
<li>
Expand Down
11 changes: 11 additions & 0 deletions packages/app-builder-lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# app-builder-lib

## 23.0.8

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- builder-util-runtime@9.0.2
- builder-util@23.0.8
- electron-publish@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app-builder-lib",
"description": "electron-builder lib",
"version": "23.0.7",
"version": "23.0.8",
"main": "out/index.js",
"files": [
"out",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = "23.0.7"
export const PACKAGE_VERSION = "23.0.8"
6 changes: 6 additions & 0 deletions packages/builder-util-runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# builder-util-runtime

## 9.0.2

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

## 9.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/builder-util-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "builder-util-runtime",
"version": "9.0.1",
"version": "9.0.2",
"main": "out/index.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/builder-util/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# builder-util

## 23.0.8

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- builder-util-runtime@9.0.2

## 23.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/builder-util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "builder-util",
"version": "23.0.6",
"version": "23.0.8",
"main": "out/util.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
11 changes: 11 additions & 0 deletions packages/dmg-builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# dmg-builder

## 23.0.8

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8
- builder-util-runtime@9.0.2
- builder-util@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dmg-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dmg-builder",
"version": "23.0.7",
"version": "23.0.8",
"main": "out/dmgUtil.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions packages/electron-builder-squirrel-windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# electron-builder-squirrel-windows

## 23.0.8

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8
- builder-util@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder-squirrel-windows/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-builder-squirrel-windows",
"version": "23.0.7",
"version": "23.0.8",
"main": "out/SquirrelWindowsTarget.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
12 changes: 12 additions & 0 deletions packages/electron-builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# electron-builder

## 23.0.8

### Patch Changes

- [#6813](https://github.com/electron-userland/electron-builder/pull/6813) [`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43) Thanks [@mmaietta](https://github.com/mmaietta)! - chore: Update dependencies and audit

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8
- builder-util-runtime@9.0.2
- builder-util@23.0.8
- dmg-builder@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-builder",
"description": "A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out of the box",
"version": "23.0.7",
"version": "23.0.8",
"main": "out/index.js",
"files": [
"out"
Expand Down
7 changes: 7 additions & 0 deletions packages/electron-forge-maker-appimage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# electron-forge-maker-appimage

## 23.0.8

### Patch Changes

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-forge-maker-appimage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-forge-maker-appimage",
"version": "23.0.7",
"version": "23.0.8",
"main": "main.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/electron-forge-maker-nsis-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# electron-forge-maker-nsis-web

## 23.0.8

### Patch Changes

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-forge-maker-nsis-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-forge-maker-nsis-web",
"version": "23.0.7",
"version": "23.0.8",
"main": "main.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/electron-forge-maker-nsis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# electron-forge-maker-nsis

## 23.0.8

### Patch Changes

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-forge-maker-nsis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-forge-maker-nsis",
"version": "23.0.7",
"version": "23.0.8",
"main": "main.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/electron-forge-maker-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# electron-forge-maker-snap

## 23.0.8

### Patch Changes

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- app-builder-lib@23.0.8

## 23.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-forge-maker-snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-forge-maker-snap",
"version": "23.0.7",
"version": "23.0.8",
"main": "main.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/electron-publish/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# electron-publish

## 23.0.8

### Patch Changes

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- builder-util-runtime@9.0.2
- builder-util@23.0.8

## 23.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-publish",
"version": "23.0.6",
"version": "23.0.8",
"main": "out/publisher.js",
"author": "Vladimir Krivosheev",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/electron-updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## 4.3.0

## 5.0.3

### Patch Changes

- [#6810](https://github.com/electron-userland/electron-builder/pull/6810) [`817e68ba`](https://github.com/electron-userland/electron-builder/commit/817e68ba54f4fa60fec789fcfcfb527473a610fc) Thanks [@blakebyrnes](https://github.com/blakebyrnes)! - fix: github provider prerelease check incorrectly casts undefined to String. Resolves #6809

- Updated dependencies [[`7af4c226`](https://github.com/electron-userland/electron-builder/commit/7af4c226af9f7759092cbd9d2c63d85e0c54ad43)]:
- builder-util-runtime@9.0.2

## 5.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-updater",
"version": "5.0.2",
"version": "5.0.3",
"description": "Cross platform updater for electron applications",
"main": "out/main.js",
"author": "Vladimir Krivosheev",
Expand Down
4 changes: 2 additions & 2 deletions packages/electron-updater/src/providers/GitHubProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class GitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
let tag: string | null = null
try {
if (this.updater.allowPrerelease) {
const currentChannel = this.updater?.channel || semver.prerelease(this.updater.currentVersion)?.[0] as string || null
const currentChannel = this.updater?.channel || (semver.prerelease(this.updater.currentVersion)?.[0] as string) || null
for (const element of feed.getElements("entry")) {
// noinspection TypeScriptValidateJSTypes
const hrefElement = hrefRegExp.exec(element.element("link").attribute("href"))!
Expand All @@ -68,7 +68,7 @@ export class GitHubProvider extends BaseGitHubProvider<GithubUpdateInfo> {
// This Release's Tag
const hrefTag = hrefElement[1]
//Get Channel from this release's tag
const hrefChannel = semver.prerelease(hrefTag)?.[0] as string || null
const hrefChannel = (semver.prerelease(hrefTag)?.[0] as string) || null

const shouldFetchVersion = !currentChannel || ["alpha", "beta"].includes(currentChannel)
const isCustomChannel = !["alpha", "beta"].includes(String(hrefChannel))
Expand Down

0 comments on commit 1a73860

Please sign in to comment.