AutoShorts is a local-first desktop application for turning long-form video or audio recordings into high-impact, vertical short-form clip candidates (9:16 portrait) with AI-powered viral moment ranking.
Rust
feat: add cross-platform font support and configure automated release workflow via GitHub Actions
JayWebtechda8d02c79efd
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 0000000..713af8c--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,48 @@+name: Release App++on:+ push:+ tags:+ - 'v*' # Triggers on release tags like v0.1.0 or v1.0.0++jobs:+ release:+ permissions:+ contents: write+ strategy:+ fail-fast: false+ matrix:+ platform: [macos-latest, ubuntu-22.04, windows-latest]+ runs-on: ${{ matrix.platform }}+ steps:+ - name: Checkout repository+ uses: actions/checkout@v4++ - name: Install Node.js+ uses: actions/setup-node@v4+ with:+ node-version: 20++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable++ # Install Linux build dependencies+ - name: Install Linux dependencies (Ubuntu only)+ if: matrix.platform == 'ubuntu-22.04'+ run: |+ sudo apt-get update+ sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev++ - name: Install node modules+ run: npm ci++ - name: Build and Package App+ uses: tauri-apps/tauri-action@v2+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ with:+ tagName: ${{ github.ref_name }}+ releaseName: 'AutoShorts ${{ github.ref_name }}'+ releaseBody: 'See release notes for installation details.'+ releaseDraft: true+ prerelease: falsediff --git a/README.md b/README.mdindex 280f8cd..bbe8215 100644--- a/README.md+++ b/README.md@@ -23,47 +23,69 @@ This repository implements the desktop app foundation using **Tauri 2 + React +## Prerequisites-To run or build the application from source:--- **Node.js**: `20+`-- **Rust**: `1.80+`-- **FFmpeg & FFprobe**: Must be installed and available on your system `PATH`.- - On macOS, you can install them using Homebrew:- ```bash- brew install ffmpeg- ```- *Note: To ensure full captions rendering support (specifically the `drawtext` and `subtitles` filter dependencies), it is recommended to use a complete, full-featured FFmpeg build. If you encounter any filter issues, tap and install the `homebrew-ffmpeg` formula:*- ```bash- brew tap homebrew-ffmpeg/ffmpeg- brew install homebrew-ffmpeg/ffmpeg/ffmpeg- ```+To run the application, **FFmpeg & FFprobe** must be installed and available on your system `PATH` to handle cropping, audio extraction, and dynamic captions:++* **macOS**: Install using Homebrew:+ ```bash+ brew install ffmpeg+ ```+ *Note: To ensure full captions rendering support, if standard Homebrew FFmpeg lacks drawtext/subtitles filters, tap and install the `homebrew-ffmpeg` formula:*+ ```bash+ brew tap homebrew-ffmpeg/ffmpeg+ brew install homebrew-ffmpeg/ffmpeg/ffmpeg+ ```+* **Windows**: Install using Winget (in PowerShell):+ ```powershell+ winget install Gyan.FFmpeg+ ```+ *(Or download the release build from [gyan.dev](https://www.gyan.dev/ffmpeg/builds/) and add it to your system PATH environment variables).*+* **Linux**: Install via your native package manager:+ ```bash+ sudo apt install ffmpeg # Debian/Ubuntu+ sudo pacman -S ffmpeg # Arch Linux+ sudo dnf install ffmpeg # Fedora+ ```---## Installation Guide (For Users)-### 1. Download the App Bundle-Download the latest `.dmg` or `.app` release from the [GitHub Releases](https://github.com/JayWebtech/autoshorts/releases/tag/autoshorts). Be sure to select the architecture matching your Mac:-- **Apple Silicon (M1/M2/M3)**: Choose the `aarch64` package.-- **Intel Mac**: Choose the `x64` package.--### 2. Install the App-1. Double-click the downloaded `.dmg` file.-2. Drag the **AutoShorts** app icon into your **Applications** folder.--### 3. Bypass macOS Gatekeeper (Unsigned Local Builds)-Because the local build is self-signed/ad-hoc signed, macOS may block it on first run with a warning ("damaged or from an unidentified developer").-- **Easiest fix**: Right-click the `AutoShorts.app` icon in Finder, choose **Open**, and click **Open** in the prompt.-- **Terminal fix**: Run the following command in your terminal:- ```bash- xattr -cr /Applications/AutoShorts.app- ```--### 4. Configure API Credentials-Since the standalone app runs outside your local environment, you need to configure your API keys within the app interface:-1. Open **AutoShorts** and click **API Settings** in the top bar.-2. Paste your API keys for **Deepgram**, **Claude**, and/or **DeepSeek**.-3. The app will visually badge your active provider and alert you if keys are missing.+Download the correct package matching your system from the latest [GitHub Releases](https://github.com/JayWebtech/autoshorts/releases/tag/autoshorts).++### 🖥️ macOS Installation+1. **Download**:+ * **Apple Silicon (M1/M2/M3)**: Select the `aarch64.dmg` package.+ * **Intel Mac**: Select the `x64.dmg` package.+2. **Install**: Double-click the `.dmg` file and drag **AutoShorts** to your **Applications** folder.+3. **Bypass Gatekeeper** (For unsigned local builds):+ * Right-click `AutoShorts.app` in Finder, select **Open**, and click **Open** in the warning dialog.+ * *Alternatively*, run this command in Terminal:+ ```bash+ xattr -cr /Applications/AutoShorts.app+ ```++### 🪟 Windows Installation+1. **Download**: Select the `.msi` (installer) or `.exe` (portable executable) package.+2. **Install**: Double-click the `.msi` file to run the setup wizard.+3. **SmartScreen Bypass**: Since the package is self-signed, Windows SmartScreen may show a warning. Click **"More Info"** in the window and choose **"Run anyway"**.++### 🐧 Linux Installation+1. **Download**: Select the `.deb` (Debian/Ubuntu) or `.AppImage` (universal portable binary).+2. **Install `.deb`**:+ ```bash+ sudo dpkg -i autoshorts_*.deb+ ```+3. **Run `.AppImage`**:+ Make it executable and launch it:+ ```bash+ chmod +x autoshorts_*.AppImage+ ./autoshorts_*.AppImage+ ```++### 🔑 Configure API Credentials+Once installed, open the application and click **API Settings** in the top bar:+1. Paste your API keys for **Deepgram** (transcription) and **Claude** and/or **DeepSeek** (viral candidate moments).+2. The UI will show a green `(Active)` badge next to your active LLM and notify you if credentials are missing.---diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 89ab860..1702b8c 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -592,10 +592,18 @@ fn build_drawtext_filters(// Premium system font hierarchylet font_paths = [+ // macOS"/System/Library/Fonts/Supplemental/Futura.ttc","/System/Library/Fonts/Avenir Next.ttc","/System/Library/Fonts/Supplemental/Arial Bold.ttf","/System/Library/Fonts/Helvetica.ttc",+ // Windows+ "C:/Windows/Fonts/SegoeUIb.ttf",+ "C:/Windows/Fonts/arialbd.ttf",+ "C:/Windows/Fonts/arial.ttf",+ // Linux+ "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",+ "/usr/share/fonts/truetype/freefont/FreeSansBold.ttf",];let mut font_option = String::new();for path in &font_paths {