Skip to content

Commit

Permalink
Merge branch 'itchio:master' into i164
Browse files Browse the repository at this point in the history
  • Loading branch information
jls47 authored Jul 1, 2024
2 parents 40c8655 + bb5e0f6 commit 73a372c
Show file tree
Hide file tree
Showing 7 changed files with 653 additions and 401 deletions.
1,023 changes: 632 additions & 391 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "kitch",
"productName": "kitch",
"desktopName": "kitch",
"version": "26.1.5-canary",
"version": "26.1.9",
"description": "itch.io desktop client",
"keywords": [
"itch.io",
Expand Down Expand Up @@ -67,7 +67,7 @@
"source-map-support": "^0.5.19",
"split2": "^3.2.2",
"styled-components": "^5.2.1",
"systeminformation": "^5.6.20",
"systeminformation": "^5.21.7",
"term-color": "^1.0.1",
"tinycolor2": "^1.4.2",
"triangulr": "^1.0.3",
Expand Down Expand Up @@ -110,7 +110,7 @@
"cross-env": "^7.0.3",
"css-loader": "^5.2.4",
"electron": "^22.3.27",
"electron-notarize": "^1.0.0",
"@electron/notarize": "^2.3.2",
"electron-packager": "^15.2.0",
"file-loader": "^6.2.0",
"happypack": "^5.0.1",
Expand Down
6 changes: 4 additions & 2 deletions release/packaging/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ async function sign(cx, packageDir) {
} else {
console.log("Notarizing...");
await measure("electron-notarize", async () => {
require("debug").enable("electron-notarize");
const { notarize } = require("electron-notarize");
require("debug").enable("@electron/notarize");
const { notarize } = require("@electron/notarize");
await notarize({

appBundleId: appBundleId(),
appPath: appBundle,
appleId: "[email protected]",
appleIdPassword: process.env.APPLE_ID_PASSWORD || "",
teamId: process.env.APPLE_TEAM_ID || "",
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/common/constants/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const originalItchio = "https://itch.io/";
const originalItchio = "https://itch.io";
const itchio = process.env.WHEN_IN_ROME || originalItchio;
const manual = "https://itch.io/docs/itch";
const itchRepo = "https://github.com/itchio/itch";
Expand Down
13 changes: 11 additions & 2 deletions src/main/reactors/context-menu/build-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function gameControls(store: Store, game: Game): MenuTemplate {
statusItems.push({
localizedLabel: [
`grid.item.${mainAction}_title`,
{ title: game.title },
{ title: escapeForContextMenu(game.title) },
],
action: actions.queueGame({ game }),
});
Expand Down Expand Up @@ -178,7 +178,10 @@ export function gameControls(store: Store, game: Game): MenuTemplate {
} else {
// we have any kind of access
statusItems.push({
localizedLabel: ["grid.item.install_title", { title: game.title }],
localizedLabel: [
"grid.item.install_title",
{ title: escapeForContextMenu(game.title) },
],
action: actions.queueGame({ game }),
});
}
Expand Down Expand Up @@ -265,3 +268,9 @@ export function userMenu(store: Store): MenuTemplate {
},
];
}

function escapeForContextMenu(label: string) {
// In a context menu, '&[^&]' will be interpreted as a shortcut
// definition. Escaping requires a second ampersand
return label.replaceAll("&", "&&");
}
2 changes: 1 addition & 1 deletion src/main/reactors/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function computeMenuTemplate(

edit: {
localizedLabel: ["menu.edit.edit"],
visible: false,
visible: true,
submenu: [
{
localizedLabel: ["menu.edit.cut"],
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/modal-widgets/SendFeedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ ${log}
);
}

if (typeof input === "object") {
if (typeof input === "object" && input !== null) {
return (
<>
{Object.keys(input).map((k) => (
Expand Down

0 comments on commit 73a372c

Please sign in to comment.