Skip to content

Commit 12b98ba

Browse files
committed
make invoke.sh executable
1 parent fa25a64 commit 12b98ba

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

binary_installer/create_installers.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ IFS=$'\n\t'
66
echo "Be certain that you're in the 'installer' directory before continuing."
77
read -p "Press any key to continue, or CTRL-C to exit..."
88

9+
VERSION='2.2.3'
10+
911
# make the installer zip for linux and mac
1012
rm -rf InvokeAI
1113
mkdir -p InvokeAI
1214
cp install.sh.in InvokeAI/install.sh
1315
chmod a+x InvokeAI/install.sh
1416
cp readme.txt InvokeAI
1517

16-
zip -r InvokeAI-binary-linux.zip InvokeAI
17-
zip -r InvokeAI-binary-mac.zip InvokeAI
18+
zip -r InvokeAI-binary-$VERSION-linux.zip InvokeAI
19+
zip -r InvokeAI-binary-$VERSION-mac.zip InvokeAI
1820

1921
# make the installer zip for windows
2022
rm -rf InvokeAI
@@ -23,7 +25,7 @@ cp install.bat.in InvokeAI/install.bat
2325
cp readme.txt InvokeAI
2426
cp WinLongPathsEnabled.reg InvokeAI
2527

26-
zip -r InvokeAI-binary-windows.zip InvokeAI
28+
zip -r InvokeAI-binary-$VERSION-windows.zip InvokeAI
2729

2830
rm -rf InvokeAI
2931

binary_installer/install.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ _err_exit $? _err_msg
214214
echo -e "\n***** Installed InvokeAI *****\n"
215215

216216
cp binary_installer/invoke.sh.in ./invoke.sh
217+
chmod a+rx ./invoke.sh
217218
echo -e "\n***** Installed invoke launcher script ******\n"
218219

219220
# more cleanup

source_installer/create_installers.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
cd "$(dirname "${BASH_SOURCE[0]}")"
44

5+
VERSION='2.2.3'
6+
57
# make the installer zip for linux and mac
68
rm -rf invokeAI
79
mkdir -p invokeAI
810
cp install.sh.in invokeAI/install.sh
911
chmod a+x invokeAI/install.sh
1012
cp readme.txt invokeAI
1113

12-
zip -r invokeAI-src-installer-linux.zip invokeAI
13-
zip -r invokeAI-src-installer-mac.zip invokeAI
14+
zip -r invokeAI-src-installer-$VERSION-linux.zip invokeAI
15+
zip -r invokeAI-src-installer-$VERSION-mac.zip invokeAI
1416

1517
# make the installer zip for windows
1618
rm -rf invokeAI
@@ -19,7 +21,7 @@ cp install.bat.in invokeAI/install.bat
1921
cp readme.txt invokeAI
2022
cp WinLongPathsEnabled.reg invokeAI
2123

22-
zip -r invokeAI-src-installer-windows.zip invokeAI
24+
zip -r invokeAI-src-installer-$VERSION-windows.zip invokeAI
2325

2426
rm -rf invokeAI
2527
echo "The installer zips are ready to be distributed.."

source_installer/install.sh.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ then
123123
else
124124
ln -sf ./source_installer/invoke.sh.in ./invoke.sh
125125
ln -sf ./source_installer/update.sh.in ./update.sh
126+
chmod a+rx ./source_installer/invoke.sh.in
127+
chmod a+rx ./source_installer/update.sh.in
126128

127129
conda activate invokeai
128130
# configure

0 commit comments

Comments
 (0)