Skip to content

Commit

Permalink
Bump version to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nemuelw committed Nov 25, 2024
1 parent e5665e2 commit 9c156c2
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 100 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Continuous Deployment

on:
release:
types: [created]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install -y desktop-file-utils
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set clean version variable
run: |
VERSION=${{ github.event.release.tag_name }}
APP_VERSION=${VERSION#v}
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
echo $APP_VERSION
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install project dependencies
run: |
pip install -r requirements.txt
- name: Build the app with Nuitka
run: |
nuitka --enable-plugin=pyside6 --include-data-dir=./assets=./assets --standalone --onefile --lto=yes --output-filename=protodesk app.py
- name: Prepare AppImage contents
run: |
mkdir -p app.AppDir/usr/bin
cp protodesk app.AppDir/usr/bin/
cp assets/logo.png app.AppDir/protodesk.png
- name: Set up appimagetool
run: |
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
chmod +x appimagetool
- name: Build the AppImage
run: |
./appimagetool app.AppDir Protodesk-${{ env.APP_VERSION }}-x86_64.AppImage
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url}}
asset_path: Protodesk-${{ env.APP_VERSION }}-x86_64.AppImage
asset_name: Protodesk-${{ env.APP_VERSION }}-x86_64.AppImage
asset_content_type: application/octet-stream
57 changes: 0 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,3 @@ jobs:
- name: Run flake8
run: |
flake8 .
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install -y desktop-file-utils
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set clean version variable
run: |
VERSION=${{ github.event.release.tag_name }}
APP_VERSION=${VERSION#v}
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
echo $APP_VERSION
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install project dependencies
run: |
pip install -r requirements.txt
- name: Build the app with Nuitka
run: |
nuitka --enable-plugin=pyside6 --include-data-dir=./assets=./assets --standalone --onefile --lto=yes --output-filename=protodesk app.py
- name: Prepare AppImage contents
run: |
mkdir -p app.AppDir/usr/bin
cp protodesk app.AppDir/usr/bin/
cp assets/logo.png app.AppDir/protodesk.png
- name: Set up appimagetool
run: |
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
chmod +x appimagetool
- name: Build the AppImage
run: |
./appimagetool app.AppDir Protodesk-${APP_VERSION}-x86_64.AppImage
# - name: Upload release asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url}}
# asset_path: Protodesk-${{ env.APP_VERSION }}-${{ matrix.arch }}.AppImage
# asset_name: Protodesk-${{ env.APP_VERSION }}-${{ matrix.arch }}.AppImage
# asset_content_type: application/octet-stream
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ app.onefile-build/
protodesk
.DirIcon
*.AppImage
Dockerfile
39 changes: 0 additions & 39 deletions Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ and maintenance, you are welcome to do so using any of these channels:

## Developers & Maintainers

1. Nemuel Wainaina
- **Email**: [[email protected]](mailto:[email protected])
Nemuel Wainaina
- **Email**: [[email protected]](mailto:[email protected])
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __init__(self, parent=None):
title_label.setAlignment(Qt.AlignCenter)
layout.addWidget(title_label)

info_label = QLabel('Version 1.2.7\nUnofficial desktop app for Proton.')
info_label = QLabel('Version 1.3.0\nUnofficial desktop app for Proton.')
info_label.setAlignment(Qt.AlignCenter)
layout.addWidget(info_label)

Expand Down

0 comments on commit 9c156c2

Please sign in to comment.