From d1716621b06e72e61c570fd77eddf53177caae12 Mon Sep 17 00:00:00 2001 From: AresValley Date: Sat, 1 Oct 2022 12:30:32 +0200 Subject: [PATCH 1/2] Auto packaging script for Linux OS --- .github/workflows/linux-packaging.yml | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/linux-packaging.yml diff --git a/.github/workflows/linux-packaging.yml b/.github/workflows/linux-packaging.yml new file mode 100644 index 0000000..6534c2b --- /dev/null +++ b/.github/workflows/linux-packaging.yml @@ -0,0 +1,64 @@ +name: Auto Packaging - Linux + +on: + workflow_dispatch: + +jobs: + linux-packaging: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Use Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: pip install -r ./requirements/requirements.txt + + - name: Install PyInstaller + run: | + pip install pyinstaller + + - name: Build Artemis main executable + run: | + cd ./spec_files/Linux + mkdir output + mkdir output/artemis + pyinstaller Artemis.spec + mv -v ./dist/Artemis ./output/Artemis + rm -rfv dist build + + pyinstaller updater.spec + mv -v ./dist/_ArtemisUpdater ./output/_ArtemisUpdater + rm -rfv dist build + + echo "Create single archives" + cd output + cp -r ../../../src/themes artemis/themes + rm -f artemis/themes/__current_theme + cp Artemis artemis/Artemis + cp _ArtemisUpdater artemis/_ArtemisUpdater + + tar -czvf Artemis_linux.tar.gz Artemis -C artemis themes + tar -czvf _ArtemisUpdater_linux.tar.gz ./_ArtemisUpdater + + echo "Create full archive for website" + + cp ../artemis3.svg artemis + cp ../create_shortcut.sh artemis + + tar -czvf ArtemisWebDownlaod_linux.tar.gz artemis + + echo "Get size and sha256" + python ../../__get_hash_code.py Artemis_linux.tar.gz _ArtemisUpdater_linux.tar.gz ArtemisWebDownlaod_linux.tar.gz > checksum.txt + + - uses: actions/upload-artifact@v3 + with: + name: Artemis_Linux + path: | + ./spec_files/Linux/output/Artemis_linux.tar.gz + ./spec_files/Linux/output/_ArtemisUpdater_linux.tar.gz + ./spec_files/Linux/output/ArtemisWebDownlaod_linux.tar.gz + ./spec_files/Linux/output/checksum.txt From d2e0ece9eb1f2979ab3d3c705057172e780e8746 Mon Sep 17 00:00:00 2001 From: AresValley Date: Sat, 1 Oct 2022 19:40:06 +0200 Subject: [PATCH 2/2] Linux and MacOS autopack actions --- .github/workflows/macOS-packaging.yml | 34 +++++++++++++++++++++++++ .github/workflows/windows-packaging.yml | 2 +- README.md | 4 +-- 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/macOS-packaging.yml diff --git a/.github/workflows/macOS-packaging.yml b/.github/workflows/macOS-packaging.yml new file mode 100644 index 0000000..3685167 --- /dev/null +++ b/.github/workflows/macOS-packaging.yml @@ -0,0 +1,34 @@ +name: Auto Packaging - MacOS + +on: + workflow_dispatch: + +jobs: + macos-packaging: + runs-on: macos-11 + steps: + - uses: actions/checkout@v3 + + - name: Use Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: pip install -r ./requirements/requirements.txt + + - name: Install PyInstaller + run: | + pip install pyinstaller + + - name: Build Artemis main executable + run: | + cd ./spec_files/macOS + pyinstaller Artemis.spec + ls -lart + + - uses: actions/upload-artifact@v3 + with: + name: Artemis_MacOS + path: | + ./spec_files/macOS/dist diff --git a/.github/workflows/windows-packaging.yml b/.github/workflows/windows-packaging.yml index 1e4a39b..4597963 100644 --- a/.github/workflows/windows-packaging.yml +++ b/.github/workflows/windows-packaging.yml @@ -5,7 +5,7 @@ on: jobs: windows-packaging: - runs-on: windows-latest + runs-on: windows-2022 steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index fd86c2f..254f0f6 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,8 @@ For more information, follow [the main page of Artemis 3](https://aresvalley.com **Requirements:** - Windows 7/8/8.1/10 -- Linux: Ubuntu 18.04+, Mint 19+, Fedora 28+ and many other. **You need at least version 2.27 of the GLIBC system library** ([details](https://github.com/AresValley/Artemis/tree/master/spec_files)) -- macOS +- Linux: Ubuntu 20.04+, Mint 20+, Fedora 32+ and many other. **You need at least version 2.31 of the GLIBC system library** ([details](https://github.com/AresValley/Artemis/tree/master/spec_files)) +- macOS 11+ (Big Sur or later) ### Run from source code Run the software from the source code with the Python interpreter is the simplest and natural way to run Artemis 3.