mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
ci: add check if inno version and pubspec version match
This commit is contained in:
@@ -47,3 +47,31 @@ jobs:
|
||||
- name: Test
|
||||
working-directory: app
|
||||
run: flutter test
|
||||
|
||||
packaging:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Extract version from pubspec.yaml
|
||||
id: pubspec_version
|
||||
run: |
|
||||
VERSION=$(grep '^version: ' app/pubspec.yaml | sed 's/version: //' | sed 's/\+.*//')
|
||||
echo "Pubspec version is $VERSION"
|
||||
echo "pubspec_version=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Extract version from Inno Setup configuration
|
||||
id: inno_version
|
||||
run: |
|
||||
VERSION=$(grep '#define MyAppVersion ' scripts/compile_windows_exe-inno.iss | sed 's/#define MyAppVersion "//' | sed 's/"//')
|
||||
echo "Inno Setup version is $VERSION"
|
||||
echo "inno_version=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Compare pubspec and Inno Setup versions
|
||||
run: |
|
||||
if [ "$pubspec_version" != "$inno_version" ]; then
|
||||
echo "Version mismatch detected!"
|
||||
exit 1
|
||||
else
|
||||
echo "Versions match."
|
||||
fi
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
; Copy app/assets/packaging/logo-256.ico to D:\inno\logo-256.ico
|
||||
|
||||
#define MyAppName "LocalSend"
|
||||
#define MyAppVersion "1.12.0"
|
||||
#define MyAppVersion "1.13.2"
|
||||
#define MyAppPublisher "Tien Do Nam"
|
||||
#define MyAppURL "https://localsend.org"
|
||||
#define MyAppExeName "localsend_app.exe"
|
||||
|
||||
Reference in New Issue
Block a user