Skip to main content

A dead simple CLI-based launcher for Cosmic Reach and Cosmic Quilt

Project description

Cosmix

A dead simple CLI-based launcher for Cosmic Reach and Cosmic Quilt.

Installation

# Install from PyPI (recommended)
python3 -m pip install cosmix-launcher

# Install from source
git clone https://codeberg.org/emmathemartian/cosmix && cd cosmix
python3 -m pip install -r requirements.txt
python3 -m build
python3 -m pip install ./dist/*.whl

# Test to make sure it's downloaded
python3 -m cosmix version

I recommend making an alias to python3 -m cosmix. In Zsh you can do this by adding the following to your .zshrc:

alias cosmix="python3 -m cosmix"

On windows download the cosmix.bat file and put it in C:\Windows\System32

Arch Linux:

Arch Linux and it's derivatives may complain with this error: externally-managed-environment

To get around this, use the --user --break-system-packages options with pip install

Obviously this has a chance of breaking something, but in my testing I have yet to have that happen. Though be aware and know that I am not responsible if you break your system.

You may also need to install Maven. On Arch Linux this is just pacman -S maven.

Usage

cosmix version
    prints the current installed cosmix version

cosmix debug
    prints a lot of debug information related to cosmix

cosmix add [instance]
    adds and downloads a new instance
    options:
    --version -v VERSION        specify a Cosmic Reach version to use. defaults to "latest"
    --quilt-version -q VERSION  specify a Cosmic Quilt version to use. defaults to "none"
    --display-name -n NAME      optionally specify a display name for the instance

cosmix update [instance]
    updates an existing version
    options:
    --version -v VERSION        specify a Cosimc Reach version to use. defaults to "latest"
    --quilt-version -q VERSION  specify a Cosmic Quilt version to use. defaults to "none"

cosmix instances
    lists all instances

cosmix launch [instance]
    launches an instance

cosmix info [instance]
    prints info about an instance

cosmix add-mod [instance] [path to mod jar]
    adds a mod jar to an instance

cosmix add-crm1-mod [instance] [mod id]
    adds a mod to an instance via CRM-1. To add repos, see ~/.local/share/cosmix/config.hjson

cosmix trash [instance]
    moves an instance to the system's trash folder

Examples

# Create an unmodded instance named `vanilla` on the latest CR version
    cosmix add vanilla
# Create a Cosmic Quilt instance named `my-quilt` on the latest CR version with Cosmic Quilt 1.2.7
    cosmix add my-quilt --quilt-version 1.2.7
# Create a vanilla instance named `old-version` on CR 0.0.1
    cosmix add old-version -v 0.0.1
# Install the latest version of Flux API available on JoJoJux's autorepo to the instance `test`
    cosmix add-crm1-mod test dev.crmodders.flux
# Update the `latest` instance to the latest available versions of Cosmic Reach and Cosmic Quilt
    cosmix update latest -v latest -q latest

Folder Structure

Cosmix stores all of its data in your XDG_DATA_HOME (typically ~/.local/share/) on Linux and %appdata% on Windows and in the cosmix folder.

This folder will contain the following extra folders:

cosmix/
    deps/
        cosmic-reach/
            Contains JARs for each downloaded Cosmic Reach version.
    instances/
        example-instance/
            config.json  - Configs for the instance.
    config.hjson - Configs for Cosmix

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

cosmix_launcher-1.0.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

cosmix_launcher-1.0.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file cosmix_launcher-1.0.3.tar.gz.

File metadata

  • Download URL: cosmix_launcher-1.0.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for cosmix_launcher-1.0.3.tar.gz
Algorithm Hash digest
SHA256 99c03b8136b58307ce51605bfa3ca40edf9440932ce33330b0daaae03447831e
MD5 c8da38f011855506ee81510676b1b434
BLAKE2b-256 8cefa99879224a8a996e6c2907c4b90161c94d8643b43b33baf800db9e84efbd

See more details on using hashes here.

File details

Details for the file cosmix_launcher-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cosmix_launcher-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 972e04a1f269405bf370d4458c6dca360e604aae86f5592284b22dd6df99fedd
MD5 f3af3910b5092f68487b303f4fe7deb6
BLAKE2b-256 7690ec0b2e3f05ae89359161054a55965d7a9625b327ab06a2e285238f83ea6b

See more details on using hashes here.

Supported by

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