Skip to content

Commit d670c32

Browse files
feat: コード署名を追加 (#9)
Co-authored-by: Lars Scheibling <24367830+scheibling@users.noreply.github.com> Co-authored-by: scheibling <lars@scheibling.se>
1 parent fcb4bdb commit d670c32

File tree

5 files changed

+45
-18
lines changed

5 files changed

+45
-18
lines changed

.github/workflows/build-production.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,30 @@ jobs:
5555
path: dist
5656

5757
build-electron:
58+
environment: OSSign
5859
strategy:
5960
fail-fast: false
6061
matrix:
6162
name:
6263
- windows
63-
- mac-x64
64-
- mac-arm64
65-
- linux
64+
# - mac-x64
65+
# - mac-arm64
66+
# - linux
6667
include:
6768
- os: windows-latest
6869
path: dist-electron/*.exe
6970
build-args: ""
7071
name: windows
71-
- os: macos-latest
72-
path: dist-electron/*.dmg
73-
build-args: "--x64"
74-
name: mac-x64
75-
ext: x64
76-
- os: macos-latest
77-
path: dist-electron/*.dmg
78-
build-args: "--arm64"
79-
name: mac-arm64
80-
- os: ubuntu-latest
81-
path: dist-electron/*.AppImage
82-
build-args: ""
83-
name: linux
72+
# - os: macos-latest
73+
# path: dist-electron/*.dmg
74+
# build-args: "--x64"
75+
# name: mac-x64
76+
# ext: x64
77+
# - os: macos-latest
78+
# path: dist-electron/*.dmg
79+
# build-args: "--arm64"
80+
# name: mac-arm64
81+
8482

8583
runs-on: ${{ matrix.os }}
8684
needs:
@@ -122,7 +120,15 @@ jobs:
122120
node update-version.js $VERSION
123121
echo Version: $VERSION
124122
123+
- name: Install OSSign
124+
uses: ossign/actions/setup-ossign@main
125+
with:
126+
token: ${{ secrets.GITHUB_TOKEN }}
127+
ossignConfig: ""
128+
125129
- name: Build electron
130+
env:
131+
OSSIGN_CONFIG: ${{ secrets.OSSIGN_CONFIG }}
126132
run: |
127133
# TODO: https://github.com/electron-userland/electron-builder/issues/6933 が直ったら修正
128134
# pnpm build:electron ${{ matrix.build-args }}
@@ -145,6 +151,10 @@ jobs:
145151
release:
146152
name: Upload release
147153
runs-on: ubuntu-latest
154+
permissions:
155+
contents: write
156+
packages: write
157+
id-token: write
148158
needs:
149159
- build-electron
150160

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Kiite Cafe Desktop
2-
[![GitHub release](https://img.shields.io/github/v/release/sevenc-nanashi/kiitecafe-desktop?label=Release)](https://github.com/sevenc-nanashi/kiitecafe-desktop/releases/latest)
2+
3+
[![GitHub release](https://img.shields.io/github/v/release/sevenc-nanashi/kiitecafe-desktop?label=Release)](https://github.com/sevenc-nanashi/kiitecafe-desktop/releases/latest)
34

45
Kiite Cafeのデスクトップアプリ版です。
56

@@ -15,7 +16,10 @@ Kiite Cafeのデスクトップアプリ版です。
1516
- 動画フリーズ(動画だけ止まった状態)時の自動復帰
1617
- UIカスタマイズ
1718

19+
## 謝辞
20+
21+
Windows版では[OSSign](https://ossign.org)による署名を使用しています。
22+
1823
## ライセンス
1924

2025
GPLv3でライセンスされています。
21-

electron-builder.config.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable @typescript-eslint/no-require-imports */
2+
3+
const { ossign } = require("@ossign/electronbuilder");
14
/**
25
* @type {import('electron-builder').Configuration}
36
*/
@@ -18,6 +21,7 @@ module.exports = {
1821
win: {
1922
target: ["nsis", "portable"],
2023
icon: "public/icon.ico",
24+
sign: process.env.OSSIGN_CONFIG ? ossign : undefined,
2125
},
2226
nsis: {
2327
oneClick: false,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@types/discord-rpc": "^4.0.9",
4343
"@types/semver": "^7.5.8",
4444
"@typescript-eslint/parser": "^8.27.0",
45+
"@ossign/electronbuilder": "^1.0.1",
4546
"@vitejs/plugin-vue": "^5.2.3",
4647
"@vue/eslint-config-typescript": "^14.5.0",
4748
"electron": "^35.0.3",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)