ci: add version tag to apk and exe artifact names
This commit is contained in:
1 parent
f6765887f1
commit
7db2ad88b3
3 files changed
+15
-10
No files matched your search
@@ -339,6 +339,7 @@ jobs:
|
|||||||
|
|
||||||
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" `
|
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" `
|
||||||
"/DMyAppVersion=${{ steps.release_info.outputs.version_name }}" `
|
"/DMyAppVersion=${{ steps.release_info.outputs.version_name }}" `
|
||||||
|
"/DOutputBaseFilename=TIS_RMS_Client_Setup_${{ steps.release_info.outputs.tag }}" `
|
||||||
TIS_RMS_Client.iss
|
TIS_RMS_Client.iss
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
@@ -374,7 +375,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
$apkPath = "build\app\outputs\flutter-apk\app-release.apk"
|
$apkPath = "build\app\outputs\flutter-apk\app-release.apk"
|
||||||
$outputPath = "..\installers\TIS_RMS_Android_Universal.apk"
|
$outputPath = "..\installers\TIS_RMS_Android_Universal_${{ steps.release_info.outputs.tag }}.apk"
|
||||||
|
|
||||||
if (-not (Test-Path $apkPath)) {
|
if (-not (Test-Path $apkPath)) {
|
||||||
throw "Android build completed without producing $apkPath"
|
throw "Android build completed without producing $apkPath"
|
||||||
@@ -395,9 +396,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
$tag = "${{ steps.release_info.outputs.tag }}"
|
||||||
$files = @(
|
$files = @(
|
||||||
"installers\TIS_RMS_Client_Setup.exe",
|
"installers\TIS_RMS_Client_Setup_$tag.exe",
|
||||||
"installers\TIS_RMS_Android_Universal.apk"
|
"installers\TIS_RMS_Android_Universal_$tag.apk"
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach ($file in $files) {
|
foreach ($file in $files) {
|
||||||
@@ -425,8 +427,8 @@ jobs:
|
|||||||
target_commitish: ${{ github.sha }}
|
target_commitish: ${{ github.sha }}
|
||||||
name: Release ${{ steps.release_info.outputs.tag }}
|
name: Release ${{ steps.release_info.outputs.tag }}
|
||||||
files: |
|
files: |
|
||||||
installers/TIS_RMS_Client_Setup.exe
|
installers/TIS_RMS_Client_Setup_${{ steps.release_info.outputs.tag }}.exe
|
||||||
installers/TIS_RMS_Android_Universal.apk
|
installers/TIS_RMS_Android_Universal_${{ steps.release_info.outputs.tag }}.apk
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|||||||
+4
-4
@@ -12,7 +12,7 @@ The Android application is distributed as a single universal APK supporting both
|
|||||||
|
|
||||||
| APK File | Architecture | Description |
|
| APK File | Architecture | Description |
|
||||||
| :--- | :--- | :--- |
|
| :--- | :--- | :--- |
|
||||||
| **`TIS_RMS_Android_Universal.apk`** | **Universal (32-bit & 64-bit)** | Single standalone installer compatible with all modern and legacy Android devices (Android 7.0+). |
|
| **`TIS_RMS_Android_Universal_v<version>.apk`** | **Universal (32-bit & 64-bit)** | Single standalone installer compatible with all modern and legacy Android devices (Android 7.0+). |
|
||||||
|
|
||||||
### Build Command (Flutter):
|
### Build Command (Flutter):
|
||||||
```bash
|
```bash
|
||||||
@@ -22,7 +22,7 @@ flutter build apk --release --obfuscate --split-debug-info=build/app/outputs/sym
|
|||||||
*Output APK located in `frontend/build/app/outputs/flutter-apk/app-release.apk`.*
|
*Output APK located in `frontend/build/app/outputs/flutter-apk/app-release.apk`.*
|
||||||
|
|
||||||
### Installation Steps:
|
### Installation Steps:
|
||||||
1. Transfer `TIS_RMS_Android_Universal.apk` to your Android device (via USB, local network share, or download).
|
1. Transfer `TIS_RMS_Android_Universal_v<version>.apk` (e.g. `TIS_RMS_Android_Universal_v1.0.0.apk`) to your Android device (via USB, local network share, or download).
|
||||||
2. Tap the `.apk` file in your file manager.
|
2. Tap the `.apk` file in your file manager.
|
||||||
3. If prompted, enable **"Install unknown apps"** or **"Allow from this source"** in Android Settings.
|
3. If prompted, enable **"Install unknown apps"** or **"Allow from this source"** in Android Settings.
|
||||||
4. Tap **Install** and open the app.
|
4. Tap **Install** and open the app.
|
||||||
@@ -59,7 +59,7 @@ flutter build windows --release --obfuscate --split-debug-info=build/windows/sym
|
|||||||
|
|
||||||
### B. Compiling the Windows Inno Setup Installer (`TIS_RMS_Client.iss`)
|
### B. Compiling the Windows Inno Setup Installer (`TIS_RMS_Client.iss`)
|
||||||
|
|
||||||
The installer script [`frontend/TIS_RMS_Client.iss`](file:///f:/SumbrerongBato/tis_rms_server/frontend/TIS_RMS_Client.iss) packages the app into an ultra-compact standalone setup file (`TIS_RMS_Client_Setup.exe` ~**16.7 MB**).
|
The installer script [`frontend/TIS_RMS_Client.iss`](file:///f:/SumbrerongBato/tis_rms_server/frontend/TIS_RMS_Client.iss) packages the app into an ultra-compact standalone setup file (`TIS_RMS_Client_Setup_v<version>.exe` ~**16.7 MB**).
|
||||||
|
|
||||||
#### Features:
|
#### Features:
|
||||||
- **Small File Size (16.7 MB)**: Uses `lzma2/ultra64` solid 64MB dictionary compression.
|
- **Small File Size (16.7 MB)**: Uses `lzma2/ultra64` solid 64MB dictionary compression.
|
||||||
@@ -74,7 +74,7 @@ The installer script [`frontend/TIS_RMS_Client.iss`](file:///f:/SumbrerongBato/t
|
|||||||
# Using Inno Setup Command Line Compiler (ISCC)
|
# Using Inno Setup Command Line Compiler (ISCC)
|
||||||
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" frontend\TIS_RMS_Client.iss
|
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" frontend\TIS_RMS_Client.iss
|
||||||
```
|
```
|
||||||
*The compiled installer will be saved to `installers/TIS_RMS_Client_Setup.exe`.*
|
*The compiled installer will be saved to `installers/TIS_RMS_Client_Setup_v<version>.exe` (e.g., `installers/TIS_RMS_Client_Setup_v1.0.0.exe`).*
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
#ifndef MyAppVersion
|
#ifndef MyAppVersion
|
||||||
#define MyAppVersion "1.0.0"
|
#define MyAppVersion "1.0.0"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OutputBaseFilename
|
||||||
|
#define OutputBaseFilename "TIS_RMS_Client_Setup_v" + MyAppVersion
|
||||||
|
#endif
|
||||||
#define MyAppPublisher "Talisay Integrated School"
|
#define MyAppPublisher "Talisay Integrated School"
|
||||||
#define MyAppURL "https://tis-rms.cc.cd"
|
#define MyAppURL "https://tis-rms.cc.cd"
|
||||||
#define MyAppExeName "frontend.exe"
|
#define MyAppExeName "frontend.exe"
|
||||||
@@ -30,7 +33,7 @@ DisableProgramGroupPage=no
|
|||||||
|
|
||||||
; Output installer file configuration
|
; Output installer file configuration
|
||||||
OutputDir=..\installers
|
OutputDir=..\installers
|
||||||
OutputBaseFilename=TIS_RMS_Client_Setup
|
OutputBaseFilename={#OutputBaseFilename}
|
||||||
SetupIconFile={#MyAppIcon}
|
SetupIconFile={#MyAppIcon}
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||||
UninstallDisplayName={#MyAppName}
|
UninstallDisplayName={#MyAppName}
|
||||||
|
|||||||
Reference in new issue
Block a user