Compare commits

...

4 Commits

Author SHA1 Message Date
izzy 864571df56 fix: include empty cert pass 2025-10-08 17:51:45 +01:00
izzy 2cf64b556f ci: actually provide the github token secret 2025-10-08 17:41:31 +01:00
izzy 55ac9a4596 ci: ensure token can write (publish) to repo 2025-10-08 17:39:00 +01:00
izzy ec7adaafe3 chore: disable flatpak build because this was for testing anyways 2025-10-08 17:36:36 +01:00
3 changed files with 65 additions and 56 deletions
+6
View File
@@ -9,6 +9,10 @@ jobs:
build-and-release: build-and-release:
name: Build App name: Build App
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
@@ -42,3 +46,5 @@ jobs:
pnpm run make pnpm run make
fi fi
shell: bash shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+58 -55
View File
@@ -35,6 +35,7 @@ const config: ForgeConfig = {
rebuildConfig: {}, rebuildConfig: {},
makers: [ makers: [
new MakerAppX({ new MakerAppX({
certPass: "",
packageExecutable: `app\\${STRINGS.execName}.exe`, packageExecutable: `app\\${STRINGS.execName}.exe`,
publisher: "CN=B040CC7E-0016-4AF5-957F-F8977A6CFA3B", publisher: "CN=B040CC7E-0016-4AF5-957F-F8977A6CFA3B",
}), }),
@@ -51,64 +52,66 @@ const config: ForgeConfig = {
copyright: "Copyright (C) 2025 Revolt Platforms LTD", copyright: "Copyright (C) 2025 Revolt Platforms LTD",
}), }),
new MakerZIP({}), new MakerZIP({}),
new MakerFlatpak({ ...[
options: { new MakerFlatpak({
id: "chat.stoat.stoat-desktop", options: {
description: STRINGS.description, id: "chat.stoat.stoat-desktop",
productName: STRINGS.name, description: STRINGS.description,
productDescription: STRINGS.description, productName: STRINGS.name,
runtimeVersion: "21.08", productDescription: STRINGS.description,
icon: `${ASSET_DIR}/icon.png`, runtimeVersion: "21.08",
categories: ["Network"], icon: `${ASSET_DIR}/icon.png`,
modules: [ categories: ["Network"],
// use the latest zypak -- Electron sandboxing for Flatpak modules: [
{ // use the latest zypak -- Electron sandboxing for Flatpak
name: "zypak", {
sources: [ name: "zypak",
{ sources: [
type: "git", {
url: "https://github.com/refi64/zypak", type: "git",
tag: "v2025.09", url: "https://github.com/refi64/zypak",
}, tag: "v2025.09",
], },
}, ],
], },
finishArgs: [ ],
// default arguments found by running finishArgs: [
// DEBUG=electron-installer-flatpak* pnpm make // default arguments found by running
"--socket=x11", // DEBUG=electron-installer-flatpak* pnpm make
"--share=ipc", "--socket=x11",
"--device=dri", "--share=ipc",
"--socket=pulseaudio", "--device=dri",
"--filesystem=home", "--socket=pulseaudio",
"--env=TMPDIR=/var/tmp", "--filesystem=home",
"--share=network", "--env=TMPDIR=/var/tmp",
"--talk-name=org.freedesktop.Notifications", "--share=network",
// add Unity talk name for badges "--talk-name=org.freedesktop.Notifications",
"--talk-name=com.canonical.Unity", // add Unity talk name for badges
], "--talk-name=com.canonical.Unity",
// files: [ ],
// // is this necessary? // files: [
// // https://stackoverflow.com/q/79745700 // // is this necessary?
// ...[16, 32, 64, 128, 256, 512].map( // // https://stackoverflow.com/q/79745700
// (size) => // ...[16, 32, 64, 128, 256, 512].map(
// [ // (size) =>
// `assets/desktop/hicolor/${size}x${size}.png`, // [
// `/app/share/icons/hicolor/${size}x${size}/apps/chat.stoat.stoat-desktop.png`, // `assets/desktop/hicolor/${size}x${size}.png`,
// ] as [string, string], // `/app/share/icons/hicolor/${size}x${size}/apps/chat.stoat.stoat-desktop.png`,
// ), // ] as [string, string],
// [ // ),
// `assets/desktop/icon.svg`, // [
// `/app/share/icons/hicolor/scalable/apps/chat.stoat.stoat-desktop.svg`, // `assets/desktop/icon.svg`,
// ] as [string, string], // `/app/share/icons/hicolor/scalable/apps/chat.stoat.stoat-desktop.svg`,
// ], // ] as [string, string],
files: [], // ],
} as MakerFlatpakOptionsConfig, files: [],
/* as Omit< } as MakerFlatpakOptionsConfig,
/* as Omit<
MakerFlatpakOptionsConfig, MakerFlatpakOptionsConfig,
"files" "files"
> */ > */
}), }),
].slice(0, 0), // disable Flatpak build
new MakerDeb({ new MakerDeb({
options: { options: {
productName: STRINGS.name, productName: STRINGS.name,
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "stoat-desktop", "name": "stoat-desktop",
"productName": "stoat-desktop", "productName": "stoat-desktop",
"version": "1.1.0", "version": "1.1.8",
"main": ".vite/build/main.js", "main": ".vite/build/main.js",
"repository": "stoatchat/desktop", "repository": "stoatchat/desktop",
"scripts": { "scripts": {