Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
vpk download github \
--repoUrl https://github.com/${{ github.repository }} \
--channel ${{ inputs.channel }} \
--token ${{ secrets.GITHUB_TOKEN }}
--token ${{ secrets.GITHUB_TOKEN }} \
${{ inputs.channel == 'dev' && '--pre' || '' }}

- name: Install libfuse2 for AppImage
if: contains(matrix.artifact, 'linux')
Expand Down
60 changes: 38 additions & 22 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,34 +94,50 @@ jobs:
name: velopack-releases
path: releases

- name: Delete existing dev release
- name: Setup .NET
if: needs.get-version.outputs.is-dev == 'true'
run: gh release delete dev --cleanup-tag -y || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0"

- name: Create dev release
- name: Install Velopack CLI
if: needs.get-version.outputs.is-dev == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: dev
name: "Development Build"
prerelease: true
make_latest: false
files: releases/*
body: |
**Latest Development Build**
run: dotnet tool install -g vpk

- name: Upload dev release via Velopack
if: needs.get-version.outputs.is-dev == 'true'
run: |
vpk upload github \
--repoUrl https://github.com/${{ github.repository }} \
--token ${{ secrets.GITHUB_TOKEN }} \
--tag dev \
--releaseName "Development Build" \
--pre \
--publish \
--merge \
--channel dev \
--outputDir releases

- name: Update dev release notes
if: needs.get-version.outputs.is-dev == 'true'
run: |
gh release edit dev --prerelease --notes "$(cat <<'EOF'
**Latest Development Build**

Version: `${{ needs.get-version.outputs.version }}`
Commit: `${{ github.sha }}`
Version: `${{ needs.get-version.outputs.version }}`
Commit: `${{ github.sha }}`

⚠️ This is a development build and may be unstable.
⚠️ This is a development build and may be unstable.

## Installation
- **Windows**: Download `synodic-Setup.exe` and run it
- **Linux**: Download the `.AppImage` file, make it executable with `chmod +x`, and run
- **macOS**: Download and extract the package
## Installation
- **Windows**: Download `synodic-Setup.exe` and run it
- **Linux**: Download the `.AppImage` file, make it executable with `chmod +x`, and run
- **macOS**: Download and extract the package
EOF
)"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

- name: Upload to existing release
if: needs.get-version.outputs.is-dev != 'true' && github.event_name == 'release'
Expand Down
8 changes: 4 additions & 4 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ requires-python = ">=3.14, <3.15"
dependencies = [
"pyside6>=6.10.2",
"packaging>=26.0",
"porringer>=0.2.1.dev10",
"porringer>=0.2.1.dev20",
"velopack>=0.0.1369.dev7516",
"typer>=0.23.0",
"typer>=0.23.1",
]

[project.urls]
homepage = "https://github.com/synodic/synodic-client"
repository = "https://github.com/synodic/synodic-client"

[dependency-groups]
build = ["pyinstaller>=6.18.0"]
lint = ["ruff>=0.15.0", "pyrefly>=0.52.0"]
build = ["pyinstaller>=6.19.0"]
lint = ["ruff>=0.15.1", "pyrefly>=0.52.0"]
test = ["pytest>=9.0.2", "pytest-cov>=7.0.0", "pytest-mock>=3.15.1"]

[project.scripts]
Expand Down
1 change: 0 additions & 1 deletion synodic_client/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def _get_velopack_manager(self) -> Any:
try:
options = velopack.UpdateOptions(
AllowVersionDowngrade=False,
MaximumDeltasBeforeFallback=0,
)
options.ExplicitChannel = self._config.channel_name

Expand Down
Loading