Added packaging functionality, added packaged exe support to filesystem

Adds package.c and package.h. Adds support for the `--pack` argument for
packing a project directory into an exe or tar file.
This commit is contained in:
rxi
2016-10-01 00:35:22 +01:00
parent 0506b3b0ca
commit cb61fa1ecd
4 changed files with 310 additions and 6 deletions

19
src/package.h Normal file
View File

@@ -0,0 +1,19 @@
/**
* Copyright (c) 2016 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
enum {
PACKAGE_TTAR,
PACKAGE_TEXE
};
enum {
PACKAGE_ESUCCESS = 0,
PACKAGE_EFAILURE = -1
};
void package_make(const char *indir, const char *outfile, const char *exefile, int type);
int package_run(int argc, char **argv);