Skip to content

Commit d3a72a9

Browse files
Jack Coweycursoragent
andcommitted
Prepare release 0.1.17.
- Route NOTICE messages targeted to our own nick to server console - Keep Tauri bundle version synced to release tags in CI - Bump app versions to 0.1.17 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 481bc7d commit d3a72a9

5 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/release-prod.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
env:
6262
NEXT_PUBLIC_BUILD_MODE: prod
6363

64+
- name: Sync Tauri bundle version from tag
65+
if: startsWith(github.ref, 'refs/tags/v')
66+
run: |
67+
node -e "const fs=require('fs'); const path='src-tauri/tauri.conf.json'; const tag=(process.env.GITHUB_REF_NAME||'').trim(); const version=tag.replace(/^v/,''); if(!version){throw new Error('Missing version tag');} const json=JSON.parse(fs.readFileSync(path,'utf8')); json.version=version; fs.writeFileSync(path, JSON.stringify(json,null,2)+'\n'); console.log('Set tauri.conf.json version to', version);"
68+
6469
- name: Build Tauri app
6570
uses: tauri-apps/tauri-action@v0
6671
env:

lib/store.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,8 @@ export const useIRCStore = create<IRCStore>((set, get) => ({
14221422
case 'notice':
14231423
if (event.nick && event.content) {
14241424
const nickLower = event.nick.toLowerCase()
1425+
const serverForNotice = get().servers.find((s) => s.id === event.server_id)
1426+
const myNick = serverForNotice?.nickname?.toLowerCase()
14251427

14261428
// Network status-style notices (e.g. "-*status-") should go to the server console,
14271429
// not into individual channels.
@@ -1430,6 +1432,12 @@ export const useIRCStore = create<IRCStore>((set, get) => ({
14301432
break
14311433
}
14321434

1435+
// NOTICEs addressed to our own nick are server/service notices, not channel messages.
1436+
if (event.channel && myNick && event.channel.toLowerCase() === myNick) {
1437+
get().addServerMessage(event.server_id, event.content, 'notice', event.nick)
1438+
break
1439+
}
1440+
14331441
if (event.channel) {
14341442
appendChannelMessage(event.channel, event.nick, event.content, 'notice')
14351443
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "my-project",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbo",

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "patchcord-desktop"
3-
version = "0.1.16"
3+
version = "0.1.17"
44
description = "Patchcord desktop app"
55
authors = ["Patchcord"]
66
license = ""

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Patchcord",
4-
"version": "0.1.9",
4+
"version": "0.1.17",
55
"identifier": "com.patchcord.desktop",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

0 commit comments

Comments
 (0)