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
16 changes: 10 additions & 6 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: Manual Build App
# or API.
on:
workflow_dispatch:
inputs:
flutter_channel:
description: "run with flutter channel, eg: master, beta, stable"
required: true
default: "master"
inputs:
flutter_channel:
description: "run with flutter channel, eg: master, beta, stable"
required: true
default: "master"
push:
tags:
- 'v*'
Expand Down Expand Up @@ -177,7 +177,11 @@ jobs:
run: flutter test

- name: Build APP
run: flutter build windows
run: |
$version_str=$(gc .\pubspec.yaml | select-string '(?<=^version: ).*' -AllMatches | Select-Object -Expand Matches | %{$_.Value})
$version=$version_str.Split("+")[0]
$build_number=$version_str.Split("+")[1]
flutter build windows --dart-define="APP_VERSION=$version" --dart-define="APP_BUILD_NUMBER=$build_number"

- name: Build Installer
run: |
Expand Down
10 changes: 7 additions & 3 deletions lib/utils/system/package_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ import 'package:package_info_plus/package_info_plus.dart';

import '../logger.dart';

const kMixinVersion = '0.37.8';
// auto added by .github/workflows/manual-build.yml
const _kAppVersion =
String.fromEnvironment('APP_VERSION', defaultValue: '0.37.0');
const _kAppBuildNumber =
String.fromEnvironment('APP_BUILD_NUMBER', defaultValue: '0');

final _packageInfo = PackageInfo(
appName: 'mixin',
packageName: 'mixin_desktop',
version: kMixinVersion,
buildNumber: '',
version: _kAppVersion,
buildNumber: _kAppBuildNumber,
);

/// Returns the package info of the current app.
Expand Down
3 changes: 2 additions & 1 deletion windows_inno_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Mixin"
#define MyAppVersion "0.37.8"
#define MyAppPublisher "Mixin, Inc."
#define MyAppURL "https://mixin.one/"
#define MyAppExeName "mixin_desktop.exe"
#define MyAppPath ".\build\windows\runner\Release\" + MyAppExeName
#define MyAppVersion GetVersionNumbersString(MyAppPath)

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
Expand Down