Skip to content

Instantly share code, notes, and snippets.

@panych
Created May 12, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panych/8387ec3926f3b048a23e to your computer and use it in GitHub Desktop.
Save panych/8387ec3926f3b048a23e to your computer and use it in GitHub Desktop.
Simple jar package builder for IDEA color theme
#!/bin/bash
# Originaly: https://github.com/jkaving/intellij-colors-solarized/blob/master/buildjar.sh
# Create the "colors" directory for the scheme files
# and copy all passed file there
mkdir colors
cp $* colors
# Create an empty "IntelliJ IDEA Global Settings" file,
# needed to be able to import the JAR using "Import Settings..."
touch IntelliJ\ IDEA\ Global\ Settings
# Create the JAR file
jar cfM settings.jar IntelliJ\ IDEA\ Global\ Settings colors
# Cleanup
rm -r colors
rm IntelliJ\ IDEA\ Global\ Settings
echo "IntelliJ IDEA settings.jar created for themes: $*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment