Skip to content

Commit

Permalink
Merge pull request #37 from Garulf/embed-icon
Browse files Browse the repository at this point in the history
Embed icon
  • Loading branch information
Garulf authored Oct 25, 2022
2 parents d603080 + d87d77a commit 2c878cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,38 @@ jobs:
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v2
with:
python-version:
- uses: actions/cache@v2
python-version: ${{ env.PYTHON_VER }}
- name: Cache plugin dependencies
id: plugin-cache
uses: actions/cache@v2
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
key: ${{ runner.os }}-${{ env.PYTHON_VER }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
- name: Cache Build dependencies
id: build-cache
uses: actions/cache@v2
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
key: ${{ runner.os }}-${{ env.PYTHON_VER }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
- name: Install Plugin dependencies
if: steps.plugin-cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r ./requirements.txt
- name: Install Build dependencies
if: steps.build-cache.outputs.cache-hit != 'true'
run: |
pip install -r ./requirements-dev.txt
- name: Build
run: |
python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile
python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile --windows-icon-from-ico=icon.png
- name: Get Plugin's version
id: version
uses: notiz-dev/github-action-json-property@release
Expand All @@ -59,7 +67,6 @@ jobs:
mkdir -p staging
mv run.exe staging
mv plugin.json staging
mv icon.png staging
mv SettingsTemplate.yaml staging
- name: Archive Release
uses: thedoctor0/zip-release@main
Expand Down
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"Name": "Steam Search",
"Description": "Search and launch your Steam Game library",
"Author": "Garulf",
"Version": "7.0.0",
"Version": "7.0.1",
"Language": "executable",
"Website": "https://github.com/Garulf/Steam-Search",
"IcoPath": "icon.png",
"IcoPath": "run.exe",
"ExecuteFileName": "run.exe"
}
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
nuitka==1.1.6
zstandard==0.18.0
ordered-set==4.1.0
imageio==2.22.2

0 comments on commit 2c878cc

Please sign in to comment.