Skip to content

Prasmoid v0.0.3

Choose a tag to compare

@prassamin prassamin released this 29 Jul 18:16
· 110 commits to main since this release

Whats new

Features

  • Added regen command to regenerate prasmoid.d.ts and prasmoid.config.js if lost or modified.
  • Internationalization (i18n) Support:
    Suggested by this awesome community member
    • i18n extract: Extracts translatable strings from metadata and QML files.
    • i18n compile: Compiles .po files into binary .mo format for use in plasmoids.
    • i18n locales edit: Adds or removes locales from your plasmoid.
  • Extended Configuration System:
    • The prasmoid.config.js now supports:
      • i18n.locales: Define supported locale codes (e.g., en, fr, pt_BR, etc.)
      • i18n.dir: Specify your translation directory

Enhancements

  • build command now auto-compiles translations before packaging.

  • init command now allows interactive locale selection, auto-generating localized metadata.json entries.

  • CLI version checking has been refined with smarter, more accurate version comparisons.

  • Various commands have been tightened up for performance and usability.

  • Renamed deps ➜ consts for cleaner architecture and more intuitive constant management.

Build Variants

1. Standard CLI (CGO Enabled)

  • Build Type: Native
  • CGO: Enabled
  • Use Case: Recommended for most Linux distributions like Ubuntu, Fedora, Arch, Debian, etc.
  • Pros: Better integration with system libraries and potentially faster execution.
  • Note: Requires a working glibc setup and basic dev environment.

2. Portable CLI (CGO Disabled)

  • Build Type: Fully Static
  • CGO: Disabled
  • Use Case: Ideal for minimal environments such as NixOS, Alpine Linux, or containers without a C toolchain.
  • Pros: Higher portability, no system dependencies.
  • Note: Some system integrations may not work if CGO features are required.