mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
feat: version-free release filenames, inline updater UI (v1.0.3)
- Rename build artifacts to fixed names (ClaudePrism-macOS.dmg, etc.) - Update latest.json URLs to use fixed filenames - Update README download links to /releases/latest - Inline update UI on home screen with version badge - Gitignore Tauri gen/schemas - Bump to v1.0.3 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
523032ab76
commit
51e038495f
11 changed files with 52 additions and 38 deletions
38
.github/workflows/build-desktop.yml
vendored
38
.github/workflows/build-desktop.yml
vendored
|
|
@ -354,12 +354,12 @@ jobs:
|
|||
node -e "
|
||||
const BASE = process.env.BASE_URL;
|
||||
const platforms = {};
|
||||
if (process.env.MAC_SIG && process.env.MAC_URL)
|
||||
platforms['darwin-aarch64'] = { signature: process.env.MAC_SIG, url: BASE + '/' + process.env.MAC_URL };
|
||||
if (process.env.LIN_SIG && process.env.LIN_URL)
|
||||
platforms['linux-x86_64'] = { signature: process.env.LIN_SIG, url: BASE + '/' + process.env.LIN_URL };
|
||||
if (process.env.WIN_SIG && process.env.WIN_URL)
|
||||
platforms['windows-x86_64'] = { signature: process.env.WIN_SIG, url: BASE + '/' + process.env.WIN_URL };
|
||||
if (process.env.MAC_SIG)
|
||||
platforms['darwin-aarch64'] = { signature: process.env.MAC_SIG, url: BASE + '/ClaudePrism-macOS.app.tar.gz' };
|
||||
if (process.env.LIN_SIG)
|
||||
platforms['linux-x86_64'] = { signature: process.env.LIN_SIG, url: BASE + '/ClaudePrism-Linux.AppImage' };
|
||||
if (process.env.WIN_SIG)
|
||||
platforms['windows-x86_64'] = { signature: process.env.WIN_SIG, url: BASE + '/ClaudePrism-Windows-setup.exe' };
|
||||
|
||||
const data = {
|
||||
version: '$VERSION',
|
||||
|
|
@ -379,22 +379,28 @@ jobs:
|
|||
gh release view "$TAG" > /dev/null 2>&1 || \
|
||||
gh release create "$TAG" --title "ClaudePrism $TAG" --generate-notes --draft
|
||||
|
||||
- name: Upload all assets to release
|
||||
- name: Rename and upload assets
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
TAG="${{ steps.tag.outputs.tag }}"
|
||||
mkdir -p upload
|
||||
|
||||
# Upload latest.json
|
||||
gh release upload "$TAG" latest.json --clobber
|
||||
# Rename platform artifacts to version-free names
|
||||
find artifacts -name "*.dmg" | head -1 | xargs -I{} cp {} upload/ClaudePrism-macOS.dmg
|
||||
find artifacts -name "*.app.tar.gz" | head -1 | xargs -I{} cp {} upload/ClaudePrism-macOS.app.tar.gz
|
||||
find artifacts -name "*-setup.exe" | head -1 | xargs -I{} cp {} upload/ClaudePrism-Windows-setup.exe
|
||||
find artifacts -name "*.msi" | head -1 | xargs -I{} cp {} upload/ClaudePrism-Windows.msi
|
||||
find artifacts -name "*.deb" | head -1 | xargs -I{} cp {} upload/ClaudePrism-Linux.deb
|
||||
find artifacts -name "*.rpm" | head -1 | xargs -I{} cp {} upload/ClaudePrism-Linux.rpm
|
||||
find artifacts -name "*.AppImage" | head -1 | xargs -I{} cp {} upload/ClaudePrism-Linux.AppImage
|
||||
|
||||
# Upload all platform artifacts
|
||||
find artifacts -type f \( \
|
||||
-name "*.dmg" -o -name "*.app.tar.gz" -o \
|
||||
-name "*.exe" -o -name "*.msi" -o \
|
||||
-name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \
|
||||
\) | while read -r file; do
|
||||
echo "Uploading: $file"
|
||||
cp latest.json upload/
|
||||
|
||||
echo "==> Uploading:"
|
||||
ls -la upload/
|
||||
|
||||
for file in upload/*; do
|
||||
gh release upload "$TAG" "$file" --clobber
|
||||
done
|
||||
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@
|
|||
<a href="https://claudeprism.delibae.dev?utm_source=github&utm_medium=readme&utm_campaign=launch_v054">
|
||||
<img src="https://img.shields.io/badge/Website-claudeprism.dev-blue?style=flat-square&logo=googlechrome&logoColor=white" alt="Website" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_aarch64.dmg">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-macOS_(Apple_Silicon)-black?style=for-the-badge&logo=apple&logoColor=white" alt="macOS 版をダウンロード" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_x64-setup.exe">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Windows-0078D4?style=for-the-badge&logo=windows&logoColor=white" alt="Windows 版をダウンロード" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_amd64.deb">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Linux_(deb)-FCC624?style=for-the-badge&logo=linux&logoColor=black" alt="Linux 版をダウンロード" />
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@
|
|||
<a href="https://claudeprism.delibae.dev?utm_source=github&utm_medium=readme&utm_campaign=launch_v054">
|
||||
<img src="https://img.shields.io/badge/Website-claudeprism.dev-blue?style=flat-square&logo=googlechrome&logoColor=white" alt="Website" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_aarch64.dmg">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-macOS_(Apple_Silicon)-black?style=for-the-badge&logo=apple&logoColor=white" alt="macOS 다운로드" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_x64-setup.exe">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Windows-0078D4?style=for-the-badge&logo=windows&logoColor=white" alt="Windows 다운로드" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_amd64.deb">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Linux_(deb)-FCC624?style=for-the-badge&logo=linux&logoColor=black" alt="Linux 다운로드" />
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@
|
|||
<a href="https://claudeprism.delibae.dev?utm_source=github&utm_medium=readme&utm_campaign=launch_v054">
|
||||
<img src="https://img.shields.io/badge/Website-claudeprism.dev-blue?style=flat-square&logo=googlechrome&logoColor=white" alt="Website" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_aarch64.dmg">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-macOS_(Apple_Silicon)-black?style=for-the-badge&logo=apple&logoColor=white" alt="Download for macOS" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_x64-setup.exe">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Windows-0078D4?style=for-the-badge&logo=windows&logoColor=white" alt="Download for Windows" />
|
||||
</a>
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_amd64.deb">
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">
|
||||
<img src="https://img.shields.io/badge/Download-Linux_(deb)-FCC624?style=for-the-badge&logo=linux&logoColor=black" alt="Download for Linux" />
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
<p align="center">
|
||||
<a href="https://claudeprism.delibae.dev?utm_source=github&utm_medium=readme&utm_campaign=launch_v054">官网</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_aarch64.dmg">macOS</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_x64-setup.exe">Windows</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest/download/ClaudePrism_1.0.0_amd64.deb">Linux</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">macOS</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">Windows</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases/latest">Linux</a> ·
|
||||
<a href="https://github.com/delibae/claude-prism/releases">所有版本</a>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@claude-prism/desktop",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "claude-prism-desktop"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
description = "AI-powered LaTeX writing workspace"
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"$schema": "https://raw.githubusercontent.com/nicegui-unofficial/nicegui-tauri-template/main/src-tauri/tauri.conf-v2-schema.json",
|
||||
"identifier": "com.claude-prism.desktop",
|
||||
"productName": "ClaudePrism",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
"beforeBuildCommand": "pnpm build",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@claude-prism/root",
|
||||
"description": "Open-Source AI LaTeX writing workspace",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/delibae/claude-prism"
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ if [ -n "$APPIMAGE_PATH" ] && [ -n "$APPIMAGE_SIG" ]; then
|
|||
const data = JSON.parse(fs.readFileSync('$LATEST_JSON', 'utf8'));
|
||||
data.platforms['linux-x86_64'] = {
|
||||
signature: \`$SIGNATURE\`,
|
||||
url: 'https://github.com/delibae/claude-prism/releases/download/$TAG/$APPIMAGE_FILENAME'
|
||||
url: 'https://github.com/delibae/claude-prism/releases/download/$TAG/ClaudePrism-Linux.AppImage'
|
||||
};
|
||||
fs.writeFileSync('$LATEST_JSON', JSON.stringify(data, null, 2));
|
||||
"
|
||||
|
|
@ -79,7 +79,7 @@ if [ -n "$APPIMAGE_PATH" ] && [ -n "$APPIMAGE_SIG" ]; then
|
|||
"platforms": {
|
||||
"linux-x86_64": {
|
||||
"signature": "$SIGNATURE",
|
||||
"url": "https://github.com/delibae/claude-prism/releases/download/$TAG/$APPIMAGE_FILENAME"
|
||||
"url": "https://github.com/delibae/claude-prism/releases/download/$TAG/ClaudePrism-Linux.AppImage"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ else
|
|||
const data = JSON.parse(fs.readFileSync('$LATEST_JSON', 'utf8'));
|
||||
data.platforms['darwin-aarch64'] = {
|
||||
signature: \`$SIGNATURE\`,
|
||||
url: 'https://github.com/delibae/claude-prism/releases/download/$TAG/$UPDATE_FILENAME'
|
||||
url: 'https://github.com/delibae/claude-prism/releases/download/$TAG/ClaudePrism-macOS.app.tar.gz'
|
||||
};
|
||||
fs.writeFileSync('$LATEST_JSON', JSON.stringify(data, null, 2));
|
||||
"
|
||||
|
|
@ -89,7 +89,7 @@ else
|
|||
"platforms": {
|
||||
"darwin-aarch64": {
|
||||
"signature": "$SIGNATURE",
|
||||
"url": "https://github.com/delibae/claude-prism/releases/download/$TAG/$UPDATE_FILENAME"
|
||||
"url": "https://github.com/delibae/claude-prism/releases/download/$TAG/ClaudePrism-macOS.app.tar.gz"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -103,8 +103,16 @@ echo "==> Uploading to GitHub Release $TAG"
|
|||
gh release view "$TAG" --repo delibae/claude-prism >/dev/null 2>&1 || \
|
||||
gh release create "$TAG" --repo delibae/claude-prism --title "ClaudePrism $TAG" --generate-notes
|
||||
|
||||
UPLOAD_ASSETS=("$DMG_PATH")
|
||||
[ -n "${UPDATE_TAR:-}" ] && UPLOAD_ASSETS+=("$UPDATE_TAR")
|
||||
# Rename to version-free names
|
||||
RENAMED_DMG="apps/desktop/src-tauri/target/ClaudePrism-macOS.dmg"
|
||||
cp "$DMG_PATH" "$RENAMED_DMG"
|
||||
UPLOAD_ASSETS=("$RENAMED_DMG")
|
||||
|
||||
if [ -n "${UPDATE_TAR:-}" ]; then
|
||||
RENAMED_TAR="apps/desktop/src-tauri/target/ClaudePrism-macOS.app.tar.gz"
|
||||
cp "$UPDATE_TAR" "$RENAMED_TAR"
|
||||
UPLOAD_ASSETS+=("$RENAMED_TAR")
|
||||
fi
|
||||
[ -f "${LATEST_JSON:-}" ] && UPLOAD_ASSETS+=("$LATEST_JSON")
|
||||
|
||||
gh release upload "$TAG" \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue