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 hides the extention of the output file 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., "TerminalFile")
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.2.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.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: termpack-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 781bc41d7a6f7811cbd7d6e37a815eebf77ec6a5e130597164bb11d1b5abe7d2
MD5 ccccf8590756972b57ad5ffc50b585b8
BLAKE2b-256 73ee51a7d5b68d2c723d54f602e1d0f492ced491b672d545cb5094d922270b8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termpack-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b12882f6021312d39c72629edf87076ee138a92d35d3bc4b3c26fc4ab8dbf6b6
MD5 62b2fb1b7227d5789dfe4a6dc6f2faca
BLAKE2b-256 5e5ad79655f00f19d1b1af94772cc9c2feeeb512f84f78d459d2b0fb0f9ed293

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