Last active
December 16, 2015 05:19
-
-
Save icedream/5383051 to your computer and use it in GitHub Desktop.
Package Setup YAML file. I'm using this for a new script I made to make making packages for Craftitude easier. I hope... This example shows a setup for the "Minekawaii" mod.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Instructions file for Minekawaii | |
-- Variables: | |
-- TARGETFOLDER => The target folder where to install the package. In this case, this will be "mods". | |
-- TARGETFILE => The target file name under which to install the package. In this case, this will be "minekawaii.jar". | |
-- URL => The URL from which to download the archive. This is the ZIP/JAR file to the mod online. | |
function Install() | |
GetResolver("archive", { | |
input = GetResolver("download", { url = "$(URL)" }) | |
}):InjectAllTo("$(TARGETFOLDER)/$(TARGETFILE)") | |
end | |
function Uninstall() | |
DeleteFile("$(TARGETFOLDER)/$(TARGETFILE)") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Metadata file | |
# for Minekawaii | |
# Package name | |
Name: Minekawaii | |
# Package description | |
Description: > | |
Minekawaii is a simple mod for all of your favorite Japanese snacks, | |
in Minecraft! | |
# Package homepage | |
Homepage: http://www.minecraftforum.net/topic/1736987-151-minekawaii-120-japanese-food-for-minecraft/ | |
# Package maintainers | |
Maintainers: | |
- Carl Kittelberger <[email protected]> | |
# Package developers | |
Developers: | |
- iNyanny; http://www.minecraftforum.net/user/1065316-inyanny/ | |
# Package license | |
License: | |
Name: Unknown | |
# Platforms on which this package is available | |
Platforms: | |
- all # Automatically selects all platforms, makes sense for a JAR file | |
#- windows | |
#- osx | |
#- linux | |
# Dependencies | |
Dependencies: | |
- requires minecraft-forge | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################### | |
# Package setup file | |
###################### | |
## Global settings ## | |
# All settings can be specifically tweaked (overwritten) | |
# for each new version. | |
Settings: | |
# Where to output generated files | |
OutputPath: output/ | |
## Global variables ## | |
# Variables are used by patterns to replace things. | |
Variables: [] # [] means empty | |
# Served packages from here | |
Packages: | |
# Package "minekawaii" | |
minekawaii: | |
# Package-specific variables | |
Variables: | |
TARGETFOLDER: mods | |
TARGETFILE: minekawaii.jar | |
# Lua scripts for later generated instructions file, | |
# will be merged in the order specified | |
Patterns: | |
- minekawaii.lua | |
# Metadata to append (can be string = file path or array = inlined metadata) | |
Metadata: minekawaii.yml | |
# Version list, newest version at top, oldest at bottom | |
Versions: | |
1.2.0: | |
Settings: | |
Distributions: [ "1.5.1" ] | |
Metadata: | |
Date: 2013-03-22T21:31:45 | |
Variables: | |
URL: http://www.appattacknetwork.com/files/upload/files/Minekawaii-1-2-0.zip | |
1.0.0: | |
Settings: | |
Distributions: [ "1.5.1" ] | |
Metadata: | |
Date: 2013-03-21T23:14:37 | |
Variables: | |
URL: http://www.appattacknetwork.com/files/upload/files/Minekawaii-1-0-0.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment