Skip to content

Commit

Permalink
fix(cli): run user build script after package is scaffolded
Browse files Browse the repository at this point in the history
In my case, this is useful for manipulating the Info.plist file
  • Loading branch information
aleclarson authored and jwerle committed Oct 6, 2023
1 parent f008e6d commit 3510f07
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2640,21 +2640,6 @@ int main (const int argc, const char* argv[]) {
additionalBuildArgs += " --test=true";
}

handleBuildPhaseForUserScript(
settings,
targetPlatform,
pathResourcesRelativeToUserBuild,
oldCwd,
additionalBuildArgs,
true
);

auto copyMapFiles = handleBuildPhaseForCopyMappedFiles(
settings,
targetPlatform,
pathResourcesRelativeToUserBuild
);

String flags;
String files;

Expand Down Expand Up @@ -4175,6 +4160,21 @@ int main (const int argc, const char* argv[]) {
// TODO Copy the files into place
}

handleBuildPhaseForUserScript(
settings,
targetPlatform,
pathResourcesRelativeToUserBuild,
oldCwd,
additionalBuildArgs,
true
);

auto copyMapFiles = handleBuildPhaseForCopyMappedFiles(
settings,
targetPlatform,
pathResourcesRelativeToUserBuild
);

log("package prepared");

auto SOCKET_HOME_API = getEnv("SOCKET_HOME_API");
Expand Down

0 comments on commit 3510f07

Please sign in to comment.