Skip to content

Commit 2c878cc

Browse files
authored
Merge pull request #37 from Garulf/embed-icon
Embed icon
2 parents d603080 + d87d77a commit 2c878cc

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,38 @@ jobs:
2424
- name: Set up Python ${{ env.PYTHON_VER }}
2525
uses: actions/setup-python@v2
2626
with:
27-
python-version:
28-
- uses: actions/cache@v2
27+
python-version: ${{ env.PYTHON_VER }}
28+
- name: Cache plugin dependencies
29+
id: plugin-cache
30+
uses: actions/cache@v2
2931
if: startsWith(runner.os, 'Windows')
3032
with:
3133
path: ~\AppData\Local\pip\Cache
32-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
34+
key: ${{ runner.os }}-${{ env.PYTHON_VER }}-pip-${{ hashFiles('**/requirements.txt') }}
3335
restore-keys: |
3436
${{ runner.os }}-pip-
35-
- uses: actions/cache@v2
37+
- name: Cache Build dependencies
38+
id: build-cache
39+
uses: actions/cache@v2
3640
if: startsWith(runner.os, 'Windows')
3741
with:
3842
path: ~\AppData\Local\pip\Cache
39-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
43+
key: ${{ runner.os }}-${{ env.PYTHON_VER }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
4044
restore-keys: |
4145
${{ runner.os }}-pip-
42-
- name: Install dependencies
46+
- name: Install Plugin dependencies
47+
if: steps.plugin-cache.outputs.cache-hit != 'true'
4348
run: |
4449
python -m pip install --upgrade pip
4550
pip install wheel
4651
pip install -r ./requirements.txt
52+
- name: Install Build dependencies
53+
if: steps.build-cache.outputs.cache-hit != 'true'
54+
run: |
4755
pip install -r ./requirements-dev.txt
4856
- name: Build
4957
run: |
50-
python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile
58+
python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile --windows-icon-from-ico=icon.png
5159
- name: Get Plugin's version
5260
id: version
5361
uses: notiz-dev/github-action-json-property@release
@@ -59,7 +67,6 @@ jobs:
5967
mkdir -p staging
6068
mv run.exe staging
6169
mv plugin.json staging
62-
mv icon.png staging
6370
mv SettingsTemplate.yaml staging
6471
- name: Archive Release
6572
uses: thedoctor0/zip-release@main

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"Name": "Steam Search",
55
"Description": "Search and launch your Steam Game library",
66
"Author": "Garulf",
7-
"Version": "7.0.0",
7+
"Version": "7.0.1",
88
"Language": "executable",
99
"Website": "https://github.com/Garulf/Steam-Search",
10-
"IcoPath": "icon.png",
10+
"IcoPath": "run.exe",
1111
"ExecuteFileName": "run.exe"
1212
}

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nuitka==1.1.6
22
zstandard==0.18.0
33
ordered-set==4.1.0
4+
imageio==2.22.2

0 commit comments

Comments
 (0)