11#! /bin/bash
2- # Script to create the AI-Commit installer for Linux
2+ # Script to create the AICommit installer for Linux
33# Exit on error
44set -e
55
@@ -16,34 +16,34 @@ pip install -r requirements.txt
1616
1717# 3. Run PyInstaller
1818echo " --- Building executable with PyInstaller ---"
19- pyinstaller --name " AI-Commit " --windowed --onefile --icon=" assets/icon.ico" main.py
19+ pyinstaller --name " AICommit " --windowed --onefile --icon=" assets/icon.ico" main.py
2020
2121# 4. Prepare installer package
2222echo " --- Creating Linux installer package ---"
23- INSTALLER_DIR=" ai-commit -linux-installer"
23+ INSTALLER_DIR=" AICommit -linux-installer"
2424rm -rf $INSTALLER_DIR
2525mkdir -p $INSTALLER_DIR /usr/local/bin
2626mkdir -p $INSTALLER_DIR /usr/share/applications
2727mkdir -p $INSTALLER_DIR /usr/share/icons/hicolor/256x256/apps
2828
2929# Copy necessary files
30- cp dist/AI-Commit $INSTALLER_DIR /usr/local/bin/ai-commit
31- cp assets/icon.png $INSTALLER_DIR /usr/share/icons/hicolor/256x256/apps/ai-commit .png
32- cp scripts/ai-commit .desktop $INSTALLER_DIR /usr/share/applications/
30+ cp dist/AICommit $INSTALLER_DIR /usr/local/bin/AICommit
31+ cp assets/icon.png $INSTALLER_DIR /usr/share/icons/hicolor/256x256/apps/AICommit .png
32+ cp scripts/AICommit .desktop $INSTALLER_DIR /usr/share/applications/
3333
3434# Create the installation script
3535cat > $INSTALLER_DIR /install.sh << EOL
3636#!/bin/bash
37- echo "Installing AI-Commit ..."
37+ echo "Installing AICommit ..."
3838sudo cp -r usr /
3939echo "Updating icon cache..."
4040sudo gtk-update-icon-cache /usr/share/icons/hicolor || echo "Failed to update icon cache."
41- echo "Installation complete. Run 'ai-commit ' from your terminal or find it in your applications menu."
41+ echo "Installation complete. Run 'AICommit ' from your terminal or find it in your applications menu."
4242EOL
4343chmod +x $INSTALLER_DIR /install.sh
4444
4545# Create the tar.gz archive
46- TARBALL_NAME=" AI-Commit -Linux-Installer.tar.gz"
46+ TARBALL_NAME=" AICommit -Linux-Installer.tar.gz"
4747echo " --- Packaging installer into $TARBALL_NAME ---"
4848tar -czvf $TARBALL_NAME -C $INSTALLER_DIR .
4949
0 commit comments