aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-02 18:56:55 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit7a483ac5f0e483dd9dff2a22ee4f0480ab75f039 (patch)
treedc6a8f2bccf626ce77cb43384ab396ffee912d85 /src
parentcd98e64f462e650c9ec4cb673c2b77831396113b (diff)
Print package progress
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6f54ba5..f33b1f6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -84,6 +84,8 @@ using namespace std::chrono;
// TODO: Verify paths (test path, ignore dirs, include dirs, expose include dir, sibs test --file dir) are sub directory of the project
+// TODO: When creating a package with `sibs package` copy LICENSE files into archive.
+
#if OS_FAMILY == OS_FAMILY_POSIX
#define fout std::cout
#define ferr std::cerr
@@ -1086,7 +1088,7 @@ static int packageProject(int argc, const _tinydir_char_t **argv)
string packagePath = toUtf8(projectPath + TINYDIR_STRING("/sibs-build/package"));
string executablePath = toUtf8(projectPath + TINYDIR_STRING("/sibs-build/release/") + sibsConfig.getPackageName());
FileString cmd = "python3 \"" + packageScriptPath + "\" \"" + executablePath + "\" \"" + packagePath + "\"";
- Result<ExecResult> bundleResult = exec(cmd.c_str());
+ Result<ExecResult> bundleResult = exec(cmd.c_str(), true);
if(!bundleResult)
{
fprintf(stderr, "Error: failed to package project as a bundle, reason: %s\n", bundleResult.getErrMsg().c_str());