Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e02dd7bfa | ||
|
|
0e20fcbc71 | ||
|
|
91099940ff | ||
|
|
490d9cf3e6 | ||
|
|
c84b0d2963 |
79
.github/workflows/windows-packaging.yml
vendored
Normal file
79
.github/workflows/windows-packaging.yml
vendored
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
name: Auto Packaging - Windows
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
windows-packaging:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Use Python 3.10
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install -r ./requirements/requirements.txt
|
||||||
|
|
||||||
|
- name: Install PyInstaller
|
||||||
|
run: |
|
||||||
|
pip install pyinstaller
|
||||||
|
|
||||||
|
- name: Build Artemis main executables and
|
||||||
|
run: |
|
||||||
|
CD spec_files\Windows
|
||||||
|
|
||||||
|
ECHO "Building Artemis executable..."
|
||||||
|
MKDIR output
|
||||||
|
pyinstaller artemis.spec
|
||||||
|
MOVE dist\Artemis.exe .\output\Artemis.exe
|
||||||
|
RMDIR -recurse -force dist
|
||||||
|
RMDIR -recurse -force build
|
||||||
|
|
||||||
|
ECHO "Building updater..."
|
||||||
|
pyinstaller updater.spec
|
||||||
|
MOVE dist\_ArtemisUpdater.exe .\output\_ArtemisUpdater.exe
|
||||||
|
RMDIR -recurse -force dist
|
||||||
|
RMDIR -recurse -force build
|
||||||
|
|
||||||
|
CD output
|
||||||
|
MKDIR Artemis
|
||||||
|
XCOPY /y Artemis.exe Artemis\
|
||||||
|
XCOPY /e /k /y ..\..\..\src\themes Artemis\themes\ /EXCLUDE:..\excluded_files.txt
|
||||||
|
XCOPY /y _ArtemisUpdater.exe Artemis\
|
||||||
|
|
||||||
|
ECHO "Compress files themes+Artemis.exe -> Artemis.zip"
|
||||||
|
$compress = @{
|
||||||
|
Path = ".\Artemis.exe", "..\..\..\src\themes"
|
||||||
|
CompressionLevel = "Optimal"
|
||||||
|
DestinationPath = ".\Artemis_win.zip"
|
||||||
|
}
|
||||||
|
Compress-Archive @compress
|
||||||
|
|
||||||
|
$compress = @{
|
||||||
|
Path = ".\_ArtemisUpdater.exe"
|
||||||
|
CompressionLevel = "Optimal"
|
||||||
|
DestinationPath = ".\_ArtemisUpdater_win.zip"
|
||||||
|
}
|
||||||
|
Compress-Archive @compress
|
||||||
|
|
||||||
|
ECHO "Compress all files for website download"
|
||||||
|
$compress = @{
|
||||||
|
Path = "Artemis"
|
||||||
|
CompressionLevel = "Optimal"
|
||||||
|
DestinationPath = ".\ArtemisWebsite_win.zip"
|
||||||
|
}
|
||||||
|
Compress-Archive @compress
|
||||||
|
|
||||||
|
python ..\..\__get_hash_code.py Artemis_win.zip _ArtemisUpdater_win.zip ArtemisWebsite_win.zip > checksum.txt
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Artemis_Windows
|
||||||
|
path: |
|
||||||
|
.\spec_files\Windows\output\Artemis_win.zip
|
||||||
|
.\spec_files\Windows\output\_ArtemisUpdater_win.zip
|
||||||
|
.\spec_files\Windows\output\ArtemisWebsite_win.zip
|
||||||
|
.\spec_files\Windows\output\checksum.txt
|
||||||
@@ -3,6 +3,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
|
|
||||||
The first release is [3.0.0] because this is actually the third major version (completely rewritten) of the software.
|
The first release is [3.0.0] because this is actually the third major version (completely rewritten) of the software.
|
||||||
|
|
||||||
|
## [3.2.3] - 2022-09-29
|
||||||
|
### Added
|
||||||
|
- Add auto-packaging feature using GitHub actions for Windows OS (experimental)
|
||||||
|
### Fixed
|
||||||
|
- Fix crash for playing audio ([#34](https://github.com/AresValley/Artemis/pull/34))
|
||||||
|
|
||||||
## [3.2.2] - 2022-07-29
|
## [3.2.2] - 2022-07-29
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed crash on startup or if checking for updates without an internet connection ([#23](https://github.com/AresValley/Artemis/pull/23))
|
- Fixed crash on startup or if checking for updates without an internet connection ([#23](https://github.com/AresValley/Artemis/pull/23))
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ The only folder with the pre-built package is the `themes` one. In this way the
|
|||||||
Some of the available themes were adapted from https://github.com/GTRONICK/QSS.
|
Some of the available themes were adapted from https://github.com/GTRONICK/QSS.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
This program (ARTEMIS 3, 2014-2020) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
This program (ARTEMIS 3, 2014-2022) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ import loggingconf # noqa 401
|
|||||||
# import default_imgs_rc
|
# import default_imgs_rc
|
||||||
|
|
||||||
|
|
||||||
__LATEST_VERSION__ = "3.2.2"
|
__LATEST_VERSION__ = "3.2.3"
|
||||||
|
|
||||||
if IS_BINARY:
|
if IS_BINARY:
|
||||||
__VERSION__ = __LATEST_VERSION__
|
__VERSION__ = __LATEST_VERSION__
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import math
|
||||||
import os
|
import os
|
||||||
from pygame import mixer
|
from pygame import mixer
|
||||||
from PyQt5.QtCore import QTimer, pyqtSlot, QObject
|
from PyQt5.QtCore import QTimer, pyqtSlot, QObject
|
||||||
@@ -120,7 +121,7 @@ class AudioPlayer(QObject):
|
|||||||
def _set_max_progress_bar(self):
|
def _set_max_progress_bar(self):
|
||||||
"""Set the maximum value of the progress bar."""
|
"""Set the maximum value of the progress bar."""
|
||||||
self._audio_progress.setMaximum(
|
self._audio_progress.setMaximum(
|
||||||
mixer.Sound(self._audio_file).get_length() * 1000
|
math.ceil(mixer.Sound(self._audio_file).get_length() * 1000)
|
||||||
)
|
)
|
||||||
|
|
||||||
def set_audio_player(self, fname=""):
|
def set_audio_player(self, fname=""):
|
||||||
|
|||||||
Reference in New Issue
Block a user