Skip to content

Commit 27eea70

Browse files
authored
build: prepare v5.15.0 release (#1575)
* 5.15.0 * build: simplify bug template Signed-off-by: Adam Setch <[email protected]> * build: fix jest coverage Signed-off-by: Adam Setch <[email protected]> * refactor: add types Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]>
1 parent 42dfadc commit 27eea70

File tree

6 files changed

+16
-25
lines changed

6 files changed

+16
-25
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+3-22
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,12 @@ body:
3232
validations:
3333
required: true
3434

35-
- type: dropdown
36-
id: environment-version
35+
- type: input
36+
id: app-version
3737
attributes:
3838
label: Gitify Version
3939
description: What version of Gitify are you using?
40-
options:
41-
- 5.14.0
42-
- 5.13.1
43-
- 5.13.0
44-
- 5.12.1
45-
- 5.12.0
46-
- 5.11.0
47-
- 5.10.0
48-
- 5.9.0
49-
- 5.8.1
50-
- 5.8.0
51-
- 5.7.0
52-
- 5.6.0
53-
- 5.5.0
54-
- 5.4.0
55-
- 5.3.0
56-
- 5.2.0
57-
- 5.1.0
58-
- 5.0.0
59-
- Other
40+
placeholder: 5.x.x
6041
validations:
6142
required: true
6243

CONTRIBUTING.md

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ The release process is automated. Follow the steps below.
5959
3. Create a [new **draft** release][github-new-release]. Set the tag version to something with the format of `v1.2.3`. Save as a **draft** before moving to the next step
6060
4. Create a branch that starts with `release/vX.X.X` (ie. `release/v1.2.3`). In this branch you need to:
6161
* Run `pnpm version <new-version-number` to **bump the version** of the app .
62-
* Update `./github/ISSUE_TEMPLATE/bug_report.yml` to have the new app version.
6362
* Commit these changes and open a PR. A GitHub Actions workflow will build, sign and upload the release assets for each commit to that branch as long as a branch is named like `release/vX.X.X` and there is a draft release with the same version number(`package.json`).
6463
5. Merge your release branch into `main`.
6564
6. Publish the release once you've finalized the release notes and confirmed all assets are there.

jest.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const config: Config = {
55
setupFiles: ['<rootDir>/src/renderer/__helpers__/setupEnvVars.js'],
66
testEnvironment: 'jsdom',
77
collectCoverage: true,
8+
collectCoverageFrom: ['src/**/*', '!**/__snapshots__/**'],
89
moduleNameMapper: {
910
// Force CommonJS build for http adapter to be available.
1011
// via https://github.com/axios/axios/issues/5101#issuecomment-1276572468

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitify",
3-
"version": "5.14.0",
3+
"version": "5.15.0",
44
"description": "GitHub notifications on your menu bar.",
55
"main": "build/main.js",
66
"scripts": {

scripts/notarize.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { notarize } = require('@electron/notarize');
2+
const { AfterPackContext } = require('electron-builder');
23

34
const packageJson = require('../package.json');
45
const appBundleId = packageJson.build.appId;
@@ -8,6 +9,9 @@ function logNotarizingProgress(msg) {
89
console.log(` • notarizing ${msg}`);
910
}
1011

12+
/**
13+
* @param {AfterPackContext} context
14+
*/
1115
const notarizeApp = async (context) => {
1216
const { electronPlatformName, appOutDir } = context;
1317
const appName = context.packager.appInfo.productFilename;

scripts/remove-unused-locales.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
const path = require('node:path');
22
const fs = require('node:fs');
3+
const { AfterPackContext } = require('electron-builder');
34

45
const packageJson = require('../package.json');
56
const electronLanguages = packageJson.build.electronLanguages;
67

7-
exports.default = async (context) => {
8+
/**
9+
* @param {AfterPackContext} context
10+
*/
11+
const removeLocales = async (context) => {
812
const appName = context.packager.appInfo.productFilename;
913
const appOutDir = context.appOutDir;
1014
const platform = context.electronPlatformName;
@@ -39,3 +43,5 @@ exports.default = async (context) => {
3943
}
4044
}
4145
};
46+
47+
exports.default = removeLocales;

0 commit comments

Comments
 (0)