mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(installer): address feedback
This commit is contained in:
parent
9fe579dd99
commit
b2b65a9012
@ -58,11 +58,12 @@ echo "Installing frontend dependencies..."
|
|||||||
echo
|
echo
|
||||||
pnpm i --frozen-lockfile
|
pnpm i --frozen-lockfile
|
||||||
echo
|
echo
|
||||||
echo "Building frontend..."
|
if [[ ! -z ${CI} ]]; then
|
||||||
if [[ -v CI ]]; then
|
echo "Building frontend without checks..."
|
||||||
# In CI, we have already done the frontend checks and can just build
|
# In CI, we have already done the frontend checks and can just build
|
||||||
pnpm vite build
|
pnpm vite build
|
||||||
else
|
else
|
||||||
|
echo "Running checks and building frontend..."
|
||||||
# This runs all the frontend checks and builds
|
# This runs all the frontend checks and builds
|
||||||
pnpm build
|
pnpm build
|
||||||
fi
|
fi
|
||||||
@ -115,17 +116,20 @@ cp WinLongPathsEnabled.reg InvokeAI-Installer/
|
|||||||
FILENAME=InvokeAI-installer-$VERSION.zip
|
FILENAME=InvokeAI-installer-$VERSION.zip
|
||||||
|
|
||||||
# Zip everything up
|
# Zip everything up
|
||||||
zip -r $FILENAME InvokeAI-Installer
|
zip -r ${FILENAME} InvokeAI-Installer
|
||||||
|
|
||||||
if [[ ! -v CI ]]; then
|
# clean up, but only if we are not in a github action
|
||||||
# clean up, but only if we are not in a github action
|
if [[ -z ${CI} ]]; then
|
||||||
|
echo
|
||||||
|
echo "Cleaning up frontend files..."
|
||||||
rm -rf InvokeAI-Installer tmp dist ../invokeai/frontend/web/dist/
|
rm -rf InvokeAI-Installer tmp dist ../invokeai/frontend/web/dist/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -v CI ]]; then
|
if [[ ! -z ${CI} ]]; then
|
||||||
# Set the output variable for github action
|
echo
|
||||||
echo "INSTALLER_FILENAME=$FILENAME" >>$GITHUB_OUTPUT
|
echo "Setting GitHub action outputs..."
|
||||||
echo "INSTALLER_PATH=installer/$FILENAME" >>$GITHUB_OUTPUT
|
echo "INSTALLER_FILENAME=${FILENAME}" >>$GITHUB_OUTPUT
|
||||||
|
echo "INSTALLER_PATH=installer/${FILENAME}" >>$GITHUB_OUTPUT
|
||||||
echo "DIST_PATH=installer/dist/" >>$GITHUB_OUTPUT
|
echo "DIST_PATH=installer/dist/" >>$GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user