Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
- name: Rename installer artifact
shell: pwsh
run: |
Move-Item -Path dist\GradusFlasher-Setup-v0.1.5.exe -Destination GradusFlasher-Setup-${{ github.ref_name }}.exe
$version = "${{ github.ref_name }}" -replace '^v', ''
Move-Item -Path "dist\GradusFlasher-Setup-v$version.exe" -Destination "GradusFlasher-Setup-${{ github.ref_name }}.exe"
Comment on lines +50 to +51
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use app version for installer source name

This rename logic now depends on github.ref_name, which is a branch name for workflow_dispatch runs (for example, main), so $version becomes main and Move-Item looks for dist\GradusFlasher-Setup-vmain.exe. The installer output is still version-based (OutputBaseFilename=GradusFlasher-Setup-v{#MyAppVersion} in windows-installer.iss), so manual workflow runs will fail at this step even though the installer was built successfully.

Useful? React with 👍 / 👎.


- name: Upload workflow artifact
uses: actions/upload-artifact@v4
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v0.1.6

- синхронизирована версия `Gradus Flasher` с новым циклом firmware-релизов
- обновлены release-ссылки и Windows-артефакты под `v0.1.6`
- убран хардкод `v0.1.5` из installer/workflow, чтобы следующий релиз собирался корректно

## v0.1.5

- `Gradus Flasher` переключен на загрузку прошивок из `gradus-firmware`
Expand Down
44 changes: 44 additions & 0 deletions GradusFlasher.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['src/m5_flasher/main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='GradusFlasher',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='GradusFlasher',
)
44 changes: 44 additions & 0 deletions M5Flasher.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['src/m5_flasher/main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='M5Flasher',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='M5Flasher',
)
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ Landing-page проекта: `docs/index.html`

## Скачать готовую Windows-версию

Если ты не хочешь ничего собирать сам, открой релиз `v0.1.5`:
Если ты не хочешь ничего собирать сам, открой релиз `v0.1.6`:

- `https://github.com/GradusXaker/m5-flasher/releases/tag/v0.1.5`
- `https://github.com/GradusXaker/m5-flasher/releases/tag/v0.1.6`

Что скачивать:

- `GradusFlasher-Setup-v0.1.5.exe` — обычная установка
- `GradusFlasher-windows-v0.1.5.zip` — portable-версия
- `GradusFlasher-Setup-v0.1.6.exe` — обычная установка
- `GradusFlasher-windows-v0.1.6.zip` — portable-версия

Если файл не виден, почти всегда причина в том, что репозиторий приватный и ты не вошел в GitHub под аккаунтом с доступом.

Expand Down Expand Up @@ -81,7 +81,7 @@ pyinstaller --noconfirm --windowed --name GradusFlasher src/m5_flasher/main.py

- Linux: `dist/GradusFlasher/GradusFlasher`
- Windows после локальной сборки: `dist\GradusFlasher\GradusFlasher.exe`
- Windows installer: `dist\GradusFlasher-Setup-v0.1.5.exe`
- Windows installer: `dist\GradusFlasher-Setup-v0.1.6.exe`

## Заметки

Expand Down
20 changes: 20 additions & 0 deletions RELEASE_NOTES_v0.1.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Gradus Flasher v0.1.6

Релиз синхронизации перед следующим циклом поставки прошивок `gradus-firmware`.

Что изменилось:

- версия приложения обновлена до `0.1.6`
- release-ссылки и Windows-артефакты обновлены под `v0.1.6`
- из `windows-release` workflow убран хардкод `v0.1.5`
- installer теперь использует `MyAppVersion` для имени выходного файла

Зачем это нужно:

- следующий релиз `m5-flasher` больше не зависит от вручную прошитого имени installer-файла
- release-процесс лучше совпадает с отдельными firmware-релизами

Ожидаемые артефакты релиза:

- Windows portable: `GradusFlasher-windows-v0.1.6.zip`
- Windows installer: `GradusFlasher-Setup-v0.1.6.exe`
2 changes: 1 addition & 1 deletion WINDOWS_INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pip install pyinstaller
pyinstaller --noconfirm --windowed --name GradusFlasher src/m5_flasher/main.py
```

Для установочной версии используй GitHub Release с файлом `GradusFlasher-Setup-v0.1.5.exe`.
Для установочной версии используй GitHub Release с файлом `GradusFlasher-Setup-v0.1.6.exe`.

## 11. Portable-режим

Expand Down
16 changes: 8 additions & 8 deletions WINDOWS_RELEASE_INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@

Открой релиз:

- `https://github.com/GradusXaker/m5-flasher/releases/tag/v0.1.5`
- `https://github.com/GradusXaker/m5-flasher/releases/tag/v0.1.6`

Дальше смотри блок `Assets`.

Там есть два Windows-файла:

- `GradusFlasher-Setup-v0.1.5.exe` — обычная установка через инсталлятор
- `GradusFlasher-windows-v0.1.5.zip` — portable-версия без установки
- `GradusFlasher-Setup-v0.1.6.exe` — обычная установка через инсталлятор
- `GradusFlasher-windows-v0.1.6.zip` — portable-версия без установки

## Что выбрать

### Вариант 1. Обычная установка

Скачай:

- `GradusFlasher-Setup-v0.1.5.exe`
- `GradusFlasher-Setup-v0.1.6.exe`

Дальше:

Expand All @@ -43,7 +43,7 @@

Скачай:

- `GradusFlasher-windows-v0.1.5.zip`
- `GradusFlasher-windows-v0.1.6.zip`

Дальше:

Expand All @@ -61,13 +61,13 @@
Проверь по пунктам:

1. Ты точно вошел в GitHub под нужным аккаунтом
2. Ты открыл вкладку `Assets` у релиза `v0.1.5`
2. Ты открыл вкладку `Assets` у релиза `v0.1.6`
3. Ты смотришь именно репозиторий `GradusXaker/m5-flasher`
4. Репозиторий не открыт в анонимном режиме браузера

## Прямые ссылки на Windows-файлы

Они работают только если у тебя есть доступ к приватному репозиторию:

- `https://github.com/GradusXaker/m5-flasher/releases/download/v0.1.5/GradusFlasher-Setup-v0.1.5.exe`
- `https://github.com/GradusXaker/m5-flasher/releases/download/v0.1.5/GradusFlasher-windows-v0.1.5.zip`
- `https://github.com/GradusXaker/m5-flasher/releases/download/v0.1.6/GradusFlasher-Setup-v0.1.6.exe`
- `https://github.com/GradusXaker/m5-flasher/releases/download/v0.1.6/GradusFlasher-windows-v0.1.6.zip`
Loading