Metadata-Version: 2.5
Name: station-appkit
Version: 1.1.0
Summary: Update check, self-updater and app window shared by Station Studio, Station Player and Station Server
Project-URL: Homepage, https://github.com/raby/station-studio
Project-URL: Repository, https://github.com/raby/station-studio
Author-email: Raby Whyte <rabywhyte@gmail.com>
License: MIT License
        
        Copyright (c) 2025-2026 Raby Whyte
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: desktop,station-studio,updater
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# station-appkit

What [Station Studio](https://github.com/raby/station-studio), Station
Player and Station Server share as desktop apps, so each is written once:

- **The new-version check** (`station_appkit.updates`): asks GitHub, at
  most once a day, for the app's newest release (`studio-v*`,
  `player-v*`, `server-v*`). Only release names are fetched.
- **The self-updater** (`station_appkit.selfupdate`): Update now in the
  downloaded Mac and Windows apps. The new version's installer is used
  only when its size and SHA-256 match what GitHub publishes for that
  file, and only from the project's own releases.
- **The app window** (`station_appkit.window`): a Chrome, Edge or Brave
  app window with its own profile, or a browser tab; and on the Mac
  (`station_appkit.macwindow`, needs PyObjC) the downloaded app's own
  WebKit window, with its menus, Dock icon and downloads.

- **Start at login** (`station_appkit.login`): a LaunchAgent on the Mac,
  the Run key on Windows, an autostart entry on Linux; never from the
  disk image, and an entry left by another copy brought up to date.
- **The log file** (`station_appkit.applog`): beside the app's data, kept
  to a few megabytes.

Each app describes itself once (`station_appkit.App`: its name, release
tag, port and so on) and passes that in. Standard library only.

It isn't meant for use outside these apps; it's published so they can be
installed with pip or pipx. MIT licensed.
