diff --git a/.github/workflows/installer_creation.yml b/.github/workflows/installer_creation.yml new file mode 100644 index 0000000..d6df1a6 --- /dev/null +++ b/.github/workflows/installer_creation.yml @@ -0,0 +1,46 @@ +name: Installer creation +on: [push] +jobs: + deb-package-creation: + runs-on: ubuntu-latest + steps: + - name: checkout repository content + uses: actions/checkout@v2 + - name: setup python + uses: actions/setup-python@v2 + - name: Update + run: sudo apt-get update + - name: Install portaudio19-dev and python3-pyaudio + run: sudo apt install portaudio19-dev python3-pyaudio + - name: Install espeak + run: sudo apt-get install espeak + - name: Install requirements + run: pip3 install -r ubuntu_requirements.txt + - name: Install pyinstaller + run: pip3 install pyinstaller + - name: Build pyinstaller package + run: pyinstaller Jarvis2.py -w + - name: delete build directory + run: rm -rf build + - name: delete spec file + run: rm Jarvis2.spec + - name: jarvis_deb directory + run: mkdir -p jarvis_deb/usr/local/bin ; mkdir -p jarvis_deb/usr/share/applications ; mkdir jarvis_deb/DEBIAN + - name: Copy debian control file and .desktop file + run: cp -b "installer maker files/control" "jarvis_deb/DEBIAN" ; cp -b "installer maker files/jarvis desktop assistant.desktop" "jarvis_deb/usr/share/applications" + - name: Copy pyinstaller package + run: cp -r "dist/Jarvis2" "jarvis_deb/usr/local/bin" + - name: Build deb package + run: dpkg-deb --build --root-owner-group jarvis_deb + - name: Remove dist and jarvis_deb directories + run: rm -r dist ; rm -r jarvis_deb + - name: Move Jarvis_deb.deb to bin folder + run: cp -b "jarvis_deb.deb" "bin" && rm "jarvis_deb.deb" + - name: Git config + run: git config --global user.name "Installer creation bot" + - name: Git add + run: git add -A + - name: Git commit + run: git commit -m "Installer update" + - name: Git push + run: git push diff --git a/README.md b/README.md index 77f09d1..5c29b89 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ python Jarvis2.py Wow! all done and now give some voice command # Download - For Windows users, download this [installer](https://raw.githubusercontent.com/Harsha200105/DesktopAssistant/issue_44/bin/jarvis%20desktop%20assistant%20setup.exe) - - For Ubuntu users, download this [deb package](https://raw.githubusercontent.com/Harsha200105/DesktopAssistant/issue_44/bin/jarvis_1.0.0-1_all.deb). + - For Ubuntu users, download this [deb package](https://raw.githubusercontent.com/Harsha200105/DesktopAssistant/issue_44/bin/jarvis_deb.deb). # Contributing Guidelines :
- We are Open for Pull Requests - Please contribute and add value to the code diff --git a/bin/jarvis_1.0.0-1_all.deb b/bin/jarvis_1.0.0-1_all.deb deleted file mode 100644 index 112aa75..0000000 Binary files a/bin/jarvis_1.0.0-1_all.deb and /dev/null differ diff --git a/installer maker files/control b/installer maker files/control new file mode 100644 index 0000000..5435226 --- /dev/null +++ b/installer maker files/control @@ -0,0 +1,8 @@ +Package: Jarvis +Version: 1.0.0 +Architecture: all +Maintainer: Technerd Brainiac +Copyright: 2021 Technerd Brainiac +License: MIT +Homepage: https://github.com/Harsha200105/DesktopAssistant +Description: A Virtual Desktop Assistant Written in Python diff --git a/installer maker files/jarvis desktop assistant.desktop b/installer maker files/jarvis desktop assistant.desktop new file mode 100644 index 0000000..7ff57f5 --- /dev/null +++ b/installer maker files/jarvis desktop assistant.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0.0 +Type=Application +Terminal=false +Exec=/usr/local/bin/Jarvis2/Jarvis2 +Name=Jarvis