Skip to main content

A CLI tool to package macOS files into terminal scripts.

Project description

TermPack

This is a simple command line tool that packages files on mac with shell scripts to create a terminal file. An icon can also be provided. This tool also automaticly hides the extention if the -p argument is present.

Prerequisites

Install required macOS tools via Homebrew:

brew bundle

Arguments

Argument Description
name The name of the output file (e.g., "My App")
input_file The path to the file you want to package
script The path to the shell script file
-t, --type The file extension to open (defaults to rtf)
-i, --icon Path to a .icns file to apply to the output
-p, --package Creates a packaged .aar file and hides extension
-o, --output Changes the output directory (defaults to dist)

Usage

Basic Creation

Generate a standard .terminal file:

termpack "My Project" document.rtf script.sh

Full Packaging

Hide the file extension and create a .aar archive:

termpack "My Project" document.rtf script.sh -p

Custom Icons

Apply a custom macOS icon to the generated file:

termpack "My Project" document.rtf script.sh -p -i icon.icns

Advanced Options

Change the embedded file type or specify an output directory:

termpack "Data Tool" source.txt run.sh -t txt -o ./build

License

Copyright (C) 2026 Adam Bar-Or

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termpack-0.1.0.tar.gz (696.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termpack-0.1.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file termpack-0.1.0.tar.gz.

File metadata

  • Download URL: termpack-0.1.0.tar.gz
  • Upload date:
  • Size: 696.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for termpack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc1b348a123703d94ee04d2dac99da4c25430e738b4df213212798cb08949fd6
MD5 c9012404d45a63f853416aacadd34d9f
BLAKE2b-256 7ad4a4faf276e6c7f3b02a2b3245c203b3b009a65014223fdcfe3e06bc16d464

See more details on using hashes here.

File details

Details for the file termpack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: termpack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for termpack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe66cbbfadbd213a4ea25ab98c55ea8cf2e2df734254294170006dc8988e82c4
MD5 cd81a35fd7f0d0a80217d0e7533bb8d0
BLAKE2b-256 07eb57af3dd00050e0f372611fc72b86d86ee0d7649c8508fd27753c0cfa19bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page