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
|
||||
pnpm i --frozen-lockfile
|
||||
echo
|
||||
echo "Building frontend..."
|
||||
if [[ -v CI ]]; then
|
||||
if [[ ! -z ${CI} ]]; then
|
||||
echo "Building frontend without checks..."
|
||||
# In CI, we have already done the frontend checks and can just build
|
||||
pnpm vite build
|
||||
else
|
||||
echo "Running checks and building frontend..."
|
||||
# This runs all the frontend checks and builds
|
||||
pnpm build
|
||||
fi
|
||||
@ -115,17 +116,20 @@ cp WinLongPathsEnabled.reg InvokeAI-Installer/
|
||||
FILENAME=InvokeAI-installer-$VERSION.zip
|
||||
|
||||
# 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/
|
||||
fi
|
||||
|
||||
if [[ -v CI ]]; then
|
||||
# Set the output variable for github action
|
||||
echo "INSTALLER_FILENAME=$FILENAME" >>$GITHUB_OUTPUT
|
||||
echo "INSTALLER_PATH=installer/$FILENAME" >>$GITHUB_OUTPUT
|
||||
if [[ ! -z ${CI} ]]; then
|
||||
echo
|
||||
echo "Setting GitHub action outputs..."
|
||||
echo "INSTALLER_FILENAME=${FILENAME}" >>$GITHUB_OUTPUT
|
||||
echo "INSTALLER_PATH=installer/${FILENAME}" >>$GITHUB_OUTPUT
|
||||
echo "DIST_PATH=installer/dist/" >>$GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user