Skip to content

Commit

Permalink
build: prepare v5.15.0 release (#1575)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
setchy authored Oct 6, 2024
1 parent 42dfadc commit 27eea70
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 25 deletions.
25 changes: 3 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,12 @@ body:
validations:
required: true

- type: dropdown
id: environment-version
- type: input
id: app-version
attributes:
label: Gitify Version
description: What version of Gitify are you using?
options:
- 5.14.0
- 5.13.1
- 5.13.0
- 5.12.1
- 5.12.0
- 5.11.0
- 5.10.0
- 5.9.0
- 5.8.1
- 5.8.0
- 5.7.0
- 5.6.0
- 5.5.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- Other
placeholder: 5.x.x
validations:
required: true

Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ The release process is automated. Follow the steps below.
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
4. Create a branch that starts with `release/vX.X.X` (ie. `release/v1.2.3`). In this branch you need to:
* Run `pnpm version <new-version-number` to **bump the version** of the app .
* Update `./github/ISSUE_TEMPLATE/bug_report.yml` to have the new app version.
* 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`).
5. Merge your release branch into `main`.
6. Publish the release once you've finalized the release notes and confirmed all assets are there.
Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config: Config = {
setupFiles: ['<rootDir>/src/renderer/__helpers__/setupEnvVars.js'],
testEnvironment: 'jsdom',
collectCoverage: true,
collectCoverageFrom: ['src/**/*', '!**/__snapshots__/**'],
moduleNameMapper: {
// Force CommonJS build for http adapter to be available.
// via https://github.com/axios/axios/issues/5101#issuecomment-1276572468
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gitify",
"version": "5.14.0",
"version": "5.15.0",
"description": "GitHub notifications on your menu bar.",
"main": "build/main.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { notarize } = require('@electron/notarize');
const { AfterPackContext } = require('electron-builder');

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

/**
* @param {AfterPackContext} context
*/
const notarizeApp = async (context) => {
const { electronPlatformName, appOutDir } = context;
const appName = context.packager.appInfo.productFilename;
Expand Down
8 changes: 7 additions & 1 deletion scripts/remove-unused-locales.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const path = require('node:path');
const fs = require('node:fs');
const { AfterPackContext } = require('electron-builder');

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

exports.default = async (context) => {
/**
* @param {AfterPackContext} context
*/
const removeLocales = async (context) => {
const appName = context.packager.appInfo.productFilename;
const appOutDir = context.appOutDir;
const platform = context.electronPlatformName;
Expand Down Expand Up @@ -39,3 +43,5 @@ exports.default = async (context) => {
}
}
};

exports.default = removeLocales;

0 comments on commit 27eea70

Please sign in to comment.