Skip to content
Snippets Groups Projects
Commit 67845d2d authored by Cam Saul's avatar Cam Saul
Browse files

Have ./bin/osx-setup use getcwd() to figure out where ./bin/build is

[ci skip]
parent 2f13e2ea
Branches
Tags
No related merge requests found
......@@ -21,11 +21,13 @@ use constant UBERJAR_DEST => getcwd() . '/OSX/Resources/metabase.jar';
use constant RESET_PW_SRC => getcwd() . '/reset-password-artifacts/reset-password/reset-password.jar';
use constant RESET_PW_DEST => getcwd() . '/OSX/Resources/reset-password.jar';
use constant BUILD_SCRIPT => getcwd() . '/bin/build';
# Copy the JRE if needed
(rcopy(JRE_HOME, JRE_DEST) or die $!) unless -d JRE_DEST;
# Build jars if needed
(system('./bin/build') or die $!) unless -f UBERJAR_SRC;
(system(BUILD_SCRIPT) or die $!) unless -f UBERJAR_SRC;
(system('lein', 'with-profile', 'reset-password', 'jar') or die $!) unless -f RESET_PW_SRC;
# Copy jars over
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment