Desktop Apps - diShine-digital-agency/ai-prompt-library GitHub Wiki

Desktop Apps

๐Ÿ›‘ DEPRECATED โ€” no longer maintained

The desktop apps documented on this page are legacy, frozen at v2.4.0, and will not receive further updates. Use prompt.dishine.it instead โ€” it runs in any modern browser on any OS (and you can add it to your Dock / Home Screen for an app-like experience) and includes features that were never shipped to desktop: many more models, Live Battle & Leaderboard, private accounts & chat, and AI chat with files and memory.

This page is preserved for contributors maintaining forks of the legacy desktop builds.

Build and install native desktop applications for macOS, Linux, and Windows (legacy, v2.4.0).


Table of Contents


Overview

The Prompt Workshop can run as a desktop application on all major platforms. Each platform uses a different approach optimized for native feel:

Platform Technology Native Window Browser Needed
macOS Swift + WebKit โœ… โŒ
Linux Python + GTK + WebKitGTK โœ… โŒ
Windows Edge app mode (VBScript launcher) โœ… โœ… (Edge/Chrome)
Android/iOS Browser + "Add to Home Screen" Partial โœ…

All desktop apps are built from source โ€” there are no pre-built downloads.


Build Commands

All builds require Node.js 18+ and Bash (Git Bash or WSL on Windows).

# Clone the repository
git clone https://github.com/diShine-digital-agency/ai-prompt-library.git
cd ai-prompt-library

# Build for all platforms at once
./desktop/build-all.sh

# Or build individually
./desktop/build-macos.sh      # macOS
./desktop/build-linux.sh      # Linux
# Windows: use build-all.sh or build-windows.bat on Windows

Output goes to dist/:

Platform Archive Type
macOS (with Xcode CLI) PromptWorkshop-macOS.zip Native app (own window)
macOS (without Xcode CLI) PromptWorkshop.tar.gz App-mode fallback (Chrome/Edge)
Linux prompt-workshop-linux.tar.gz Native GTK app
Windows PromptWorkshop-win.zip Edge app mode

macOS โ€” Native App

What You Get

A real macOS application that runs in its own window โ€” no browser needed:

  • โœ… Its own window with a native title bar
  • โœ… Full menu bar (File, Edit, View, Window)
  • โœ… Standard keyboard shortcuts (โŒ˜C, โŒ˜V, โŒ˜Q, โŒ˜+/โŒ˜- zoom)
  • โœ… Dock icon โ€” pin it to your Dock
  • โœ… Spotlight search โ€” find it by typing "Prompt Workshop"
  • โœ… Full screen support (โŒƒโŒ˜F)
  • โœ… Works completely offline
  • โœ… Saved prompts persist between sessions

Requirements

  • macOS 11+
  • Xcode Command Line Tools (for native app build)
    xcode-select --install
    

Without Xcode CLI Tools, the build creates an app-mode fallback that opens in Chrome/Edge instead of a native window.

Build & Install

# 1. Install Xcode Command Line Tools (REQUIRED for native app)
xcode-select --install

# 2. Build the app โ€” look for "โ˜… Native build" in the output
./desktop/build-macos.sh

# 3. Install
mv dist/PromptWorkshop.app /Applications/

# 4. Launch
open /Applications/PromptWorkshop.app

App Structure

PromptWorkshop.app/
โ””โ”€โ”€ Contents/
    โ”œโ”€โ”€ Info.plist              # App metadata (bundle ID, version, icon)
    โ”œโ”€โ”€ MacOS/
    โ”‚   โ””โ”€โ”€ PromptWorkshop      # Native executable (Swift + WebKit)
    โ””โ”€โ”€ Resources/
        โ””โ”€โ”€ viewer.html         # The complete Prompt Workshop

Keyboard Shortcuts

Shortcut Action
โŒ˜Q Quit
โŒ˜W Close window
โŒ˜C / โŒ˜V Copy / Paste
โŒ˜Z / โ‡งโŒ˜Z Undo / Redo
โŒ˜+ / โŒ˜- Zoom in / out
โŒ˜0 Reset zoom
โŒƒโŒ˜F Toggle full screen
โŒ˜R Reload
โŒ˜M Minimize
โŒ˜H Hide

Plus all in-app shortcuts (1โ€“7 for tabs, Ctrl+K for search, H for help, D for dark mode).

Data Storage

Your saved prompts and settings are stored in the app's own WebKit data store:

  • โœ… Data persists across app restarts and updates
  • โœ… Separate from browser data โ€” clearing Safari/Chrome won't affect the app
  • โš ๏ธ If you delete the app, your data is lost โ€” export your library first

Linux โ€” Native App

What You Get

A native Linux application running in its own window:

  • โœ… Its own window (no browser address bar or tabs)
  • โœ… Application menu entry โ€” search "Prompt Workshop"
  • โœ… Keyboard shortcuts (Ctrl+C/V, Ctrl+ยฑ, F11 full screen)
  • โœ… Works completely offline
  • โœ… Saved prompts persist between sessions

Requirements

The native window needs GTK + WebKitGTK (pre-installed on most desktop distros):

Distro Packages Needed Pre-installed?
Ubuntu/Debian python3-gi gir1.2-webkit2-4.0 โœ… Yes (GNOME)
Fedora python3-gobject webkit2gtk3 โœ… Yes
Arch python-gobject webkit2gtk โš ๏ธ May need install
Linux Mint python3-gi gir1.2-webkit2-4.0 โœ… Yes

If missing, the app falls back to Chrome/Edge app mode or your regular browser.

For clipboard support: install xclip (sudo apt install xclip).

Build & Install

# 1. Build the Linux package
./desktop/build-linux.sh

# 2. Extract and install
cd dist
tar -xzf prompt-workshop-linux.tar.gz
cd prompt-workshop
./install.sh

# 3. Launch
prompt-workshop

You can also double-click install.sh from your file manager โ€” on GNOME, a dialog shows progress and a "โœ… Installed!" message.

Package Contents

prompt-workshop/
โ”œโ”€โ”€ viewer.html               # The complete Prompt Workshop
โ”œโ”€โ”€ prompt-workshop            # Smart launcher (native โ†’ app-mode โ†’ browser)
โ”œโ”€โ”€ prompt-workshop-app.py     # Native GTK + WebKit application
โ”œโ”€โ”€ prompt-workshop.png        # App icon
โ”œโ”€โ”€ prompt-workshop.desktop    # Desktop entry file
โ””โ”€โ”€ install.sh                 # GUI installer (double-click to install)

Install Locations

File Location
App files ~/.local/share/prompt-workshop/
Launcher ~/.local/bin/prompt-workshop
Desktop entry ~/.local/share/applications/prompt-workshop.desktop

Uninstall

rm -rf ~/.local/share/prompt-workshop
rm -f ~/.local/bin/prompt-workshop
rm -f ~/.local/share/applications/prompt-workshop.desktop

Windows โ€” Native-Style App

What You Get

A native-style Windows application using Microsoft Edge app mode:

  • โœ… Its own window (no address bar, no tabs)
  • โœ… Desktop shortcut with custom icon
  • โœ… Start Menu entry โ€” search "Prompt Workshop"
  • โœ… Taskbar integration โ€” pin to taskbar
  • โœ… Works completely offline
  • โœ… No admin rights needed
  • โœ… No registry changes

How It Works

The app opens in Microsoft Edge app mode โ€” a clean window without browser chrome. Edge is pre-installed on Windows 10/11.

Fallback chain: Edge app mode โ†’ Chrome app mode โ†’ default browser

Build & Install

Requires Bash (Git Bash or WSL) and Node.js 18+.

# 1. Build (from Git Bash or WSL)
./desktop/build-all.sh

# 2. Extract the zip from dist/
# 3. Double-click Install.bat

Install.bat creates:

  • A Desktop shortcut (with custom icon)
  • A Start Menu entry (searchable as "Prompt Workshop")

Package Contents

PromptWorkshop-win/
โ”œโ”€โ”€ viewer.html               # The complete Prompt Workshop
โ”œโ”€โ”€ PromptWorkshop.vbs        # Native-style launcher (Edge app mode)
โ”œโ”€โ”€ PromptWorkshop.bat        # Fallback launcher (default browser)
โ”œโ”€โ”€ PromptWorkshop.ico        # App icon
โ”œโ”€โ”€ Install.bat               # One-click installer
โ”œโ”€โ”€ Uninstall.bat             # One-click uninstaller
โ””โ”€โ”€ README.txt                # Quick start guide

Portable Use

Don't want to install? Just double-click PromptWorkshop.vbs directly from any folder.

Uninstall

Double-click Uninstall.bat, or manually delete:

  • %LocalAppData%\PromptWorkshop\ folder
  • Desktop shortcut
  • Start Menu shortcut

Android & iOS

The Prompt Workshop works in any modern mobile browser as a standalone HTML file.

Android

  1. Transfer viewer.html to your device (email, cloud drive, USB)
  2. Open it in Chrome
  3. Tap โ‹ฎ menu โ†’ "Add to Home screen"
  4. Launch from your home screen like a regular app

iOS / iPadOS

  1. Transfer viewer.html to your device (AirDrop, iCloud Drive, email)
  2. Open it in Safari
  3. Tap the share button (โ†‘) โ†’ "Add to Home Screen"
  4. Launch from your home screen

Note: iOS requires Safari for "Add to Home Screen" โ€” other browsers don't support this.


Troubleshooting

macOS: App Opens in Browser Instead of Own Window

The build created the app-mode fallback instead of the native app.

Cause: Xcode Command Line Tools not installed (no swiftc compiler).

Fix:

xcode-select --install       # Install Xcode CLI Tools
./desktop/build-macos.sh     # Rebuild โ€” look for "โ˜… Native build"
mv dist/PromptWorkshop.app /Applications/

macOS: App Icon Missing in Dock

# Clear icon cache and restart Finder
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock

macOS: "App is damaged and can't be opened"

This is macOS Gatekeeper blocking unsigned apps. Fix with one of:

  1. Right-click the app โ†’ click Open โ†’ click Open in the dialog
  2. Run: xattr -cr /Applications/PromptWorkshop.app
  3. Go to System Settings โ†’ Privacy & Security โ†’ click Open Anyway

macOS: Build Error "swiftc: command not found"

Install Xcode Command Line Tools: xcode-select --install

Linux: "Permission denied" on install.sh

chmod +x install.sh && ./install.sh

Or right-click โ†’ Properties โ†’ Permissions โ†’ check "Allow executing file as program".

Linux: App Not in Application Menu

update-desktop-database ~/.local/share/applications/

Linux: ~/.local/bin Not in PATH

# Add to ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc

Windows: SmartScreen "Windows protected your PC"

  1. Click "More info"
  2. Click "Run anyway"

This only happens once for files downloaded from the internet.

Windows: Antivirus Blocks .vbs File

  • Use PromptWorkshop.bat instead
  • Or open viewer.html directly in your browser
  • Or add an exception in your antivirus

Windows: App Opens in Full Browser

Edge wasn't found. Install Microsoft Edge or Google Chrome โ€” the launcher will use app mode.


Data Backup

Before updating or uninstalling, export your data:

  1. Open the Prompt Workshop
  2. Go to My Library tab (or click ๐Ÿ“š)
  3. Click Export all as JSON
  4. Save the file

To restore: My Library โ†’ Import JSON โ†’ select your backup file.


Navigation: โ† Architecture ย |ย  Contributing โ†’