Compare commits
6 Commits
v2.0.4
...
sidecar-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
375669f657 | ||
|
|
c8b11fb0ad | ||
|
|
273a926f03 | ||
|
|
5bbbc38875 | ||
|
|
d50be6654d | ||
|
|
68abf49018 |
@@ -13,10 +13,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "20"
|
NODE_VERSION: "20"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building for tag: ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building for tag: ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "20"
|
NODE_VERSION: "20"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building for tag: ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building for tag: ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Build App (Windows)
|
name: Build App (Windows)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building cloud sidecar for tag ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building cloud sidecar for tag ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -85,7 +86,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
shell: powershell
|
shell: powershell
|
||||||
@@ -161,10 +162,11 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building cloud sidecar for tag ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building cloud sidecar for tag ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building for tag: ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building for tag: ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
run: echo "Building for tag: ${RELEASE_TAG}"
|
run: |
|
||||||
|
echo "Building for tag: ${RELEASE_TAG}"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
RELEASE_TAG: "${{ inputs.tag }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Show tag
|
- name: Show tag
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
@@ -109,50 +109,14 @@ jobs:
|
|||||||
|
|
||||||
for workflow in build-app-linux.yml build-app-windows.yml build-app-macos.yml; do
|
for workflow in build-app-linux.yml build-app-windows.yml build-app-macos.yml; do
|
||||||
echo "Dispatching ${workflow} for ${TAG}..."
|
echo "Dispatching ${workflow} for ${TAG}..."
|
||||||
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \
|
HTTP_CODE=$(curl -s -w "%{http_code}" -o /tmp/dispatch_resp.txt -X POST \
|
||||||
-H "Authorization: token ${BUILD_TOKEN}" \
|
-H "Authorization: token ${BUILD_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"ref\": \"main\", \"inputs\": {\"tag\": \"${TAG}\"}}" \
|
-d "{\"ref\": \"main\", \"inputs\": {\"tag\": \"${TAG}\"}}" \
|
||||||
"${REPO_API}/actions/workflows/${workflow}/dispatches")
|
"${REPO_API}/actions/workflows/${workflow}/dispatches")
|
||||||
echo " -> HTTP ${HTTP_CODE}"
|
echo " -> HTTP ${HTTP_CODE}"
|
||||||
|
[ "$HTTP_CODE" != "204" ] && cat /tmp/dispatch_resp.txt && echo ""
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Clean up old app releases
|
# NOTE: Automatic cleanup disabled -- it races with async builds.
|
||||||
env:
|
# Clean up old releases manually from the Gitea UI when needed.
|
||||||
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
|
|
||||||
run: |
|
|
||||||
REPO_API="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
|
||||||
KEEP=3
|
|
||||||
PROTECT_TAG="v1.4.0"
|
|
||||||
|
|
||||||
echo "Cleaning up old app releases (keeping latest ${KEEP} + ${PROTECT_TAG})..."
|
|
||||||
|
|
||||||
# Get all app releases (v* tags, not sidecar-v*)
|
|
||||||
RELEASES=$(curl -s -H "Authorization: token ${BUILD_TOKEN}" \
|
|
||||||
"${REPO_API}/releases?limit=50" | jq -c '[.[] | select(.tag_name | startswith("v")) | select(.tag_name | startswith("sidecar") | not)]')
|
|
||||||
|
|
||||||
TOTAL=$(echo "$RELEASES" | jq 'length')
|
|
||||||
echo "Found ${TOTAL} app releases"
|
|
||||||
|
|
||||||
if [ "$TOTAL" -le "$KEEP" ]; then
|
|
||||||
echo "Nothing to clean up"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Skip the newest KEEP releases, delete the rest (except protected)
|
|
||||||
echo "$RELEASES" | jq -c ".[$KEEP:][]" | while read -r release; do
|
|
||||||
ID=$(echo "$release" | jq -r '.id')
|
|
||||||
TAG=$(echo "$release" | jq -r '.tag_name')
|
|
||||||
|
|
||||||
if [ "$TAG" = "$PROTECT_TAG" ]; then
|
|
||||||
echo " Protecting ${TAG}"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo " Deleting release ${TAG} (ID: ${ID})..."
|
|
||||||
curl -s -X DELETE -H "Authorization: token ${BUILD_TOKEN}" \
|
|
||||||
"${REPO_API}/releases/${ID}"
|
|
||||||
# Keep the git tag -- only delete the release (assets).
|
|
||||||
# Deleting tags breaks builds that haven't checked out yet.
|
|
||||||
done
|
|
||||||
echo "Cleanup complete"
|
|
||||||
|
|||||||
@@ -128,37 +128,5 @@ jobs:
|
|||||||
echo " -> HTTP ${HTTP_CODE}"
|
echo " -> HTTP ${HTTP_CODE}"
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Clean up old sidecar releases
|
# NOTE: Automatic cleanup disabled -- it races with async builds.
|
||||||
if: steps.check_changes.outputs.has_changes == 'true'
|
# Clean up old releases manually from the Gitea UI when needed.
|
||||||
env:
|
|
||||||
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
|
|
||||||
run: |
|
|
||||||
REPO_API="${GITHUB_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}"
|
|
||||||
KEEP=2
|
|
||||||
|
|
||||||
echo "Cleaning up old sidecar releases (keeping latest ${KEEP})..."
|
|
||||||
|
|
||||||
# Get all sidecar releases (sidecar-v* tags)
|
|
||||||
RELEASES=$(curl -s -H "Authorization: token ${BUILD_TOKEN}" \
|
|
||||||
"${REPO_API}/releases?limit=50" | jq -c '[.[] | select(.tag_name | startswith("sidecar-v"))]')
|
|
||||||
|
|
||||||
TOTAL=$(echo "$RELEASES" | jq 'length')
|
|
||||||
echo "Found ${TOTAL} sidecar releases"
|
|
||||||
|
|
||||||
if [ "$TOTAL" -le "$KEEP" ]; then
|
|
||||||
echo "Nothing to clean up"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Skip the newest KEEP releases, delete the rest
|
|
||||||
echo "$RELEASES" | jq -c ".[$KEEP:][]" | while read -r release; do
|
|
||||||
ID=$(echo "$release" | jq -r '.id')
|
|
||||||
TAG=$(echo "$release" | jq -r '.tag_name')
|
|
||||||
|
|
||||||
echo " Deleting sidecar release ${TAG} (ID: ${ID})..."
|
|
||||||
curl -s -X DELETE -H "Authorization: token ${BUILD_TOKEN}" \
|
|
||||||
"${REPO_API}/releases/${ID}"
|
|
||||||
# Keep the git tag -- only delete the release (assets).
|
|
||||||
# Deleting tags breaks builds that haven't checked out yet.
|
|
||||||
done
|
|
||||||
echo "Cleanup complete"
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "local-transcription",
|
"name": "local-transcription",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.4",
|
"version": "2.0.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "local-transcription"
|
name = "local-transcription"
|
||||||
version = "1.0.4"
|
version = "1.0.5"
|
||||||
description = "A standalone desktop application for real-time speech-to-text transcription using Whisper models"
|
description = "A standalone desktop application for real-time speech-to-text transcription using Whisper models"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "local-transcription"
|
name = "local-transcription"
|
||||||
version = "2.0.4"
|
version = "2.0.6"
|
||||||
description = "Real-time speech-to-text transcription for streamers"
|
description = "Real-time speech-to-text transcription for streamers"
|
||||||
authors = ["Local Transcription Contributors"]
|
authors = ["Local Transcription Contributors"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "Local Transcription",
|
"productName": "Local Transcription",
|
||||||
"version": "2.0.4",
|
"version": "2.0.6",
|
||||||
"identifier": "net.anhonesthost.local-transcription",
|
"identifier": "net.anhonesthost.local-transcription",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../dist",
|
"frontendDist": "../dist",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"""Version information for Local Transcription."""
|
"""Version information for Local Transcription."""
|
||||||
|
|
||||||
__version__ = "2.0.4"
|
__version__ = "2.0.6"
|
||||||
__version_info__ = (2, 0, 4)
|
__version_info__ = (2, 0, 6)
|
||||||
|
|
||||||
# Version history:
|
# Version history:
|
||||||
# 1.4.0 - Auto-update feature:
|
# 1.4.0 - Auto-update feature:
|
||||||
|
|||||||
Reference in New Issue
Block a user