Skip to content

Commit

Permalink
👷 Add windows build to GithubActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Aug 31, 2023
1 parent 0973577 commit b1ad4f6
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 16 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/flutterWindows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Flutter Deploy - Windows

permissions:
contents: write
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'build-windows'
cancel-in-progress: true

on:
workflow_dispatch:
push:
tags:
- '2.*'

jobs:
build:
runs-on: windows-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'stable', 'beta', 'dev' or 'master'

- name: Write env file
env:
ENV_DART: ${{ secrets.ENV_DART }}
run: |
$Env:ENV_DART | Out-File ./lib/env.dart
- name: Build Windows release version
run: flutter build windows --release

- name: Building the installer
shell: cmd
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "installers\assistantNMS.iss"
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: AssistantNMS_setup
path: 'installers/AssistantNMS_setup.exe'
32 changes: 16 additions & 16 deletions installers/assistantNMS.iss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf64}\AssistantNMS
DisableProgramGroupPage=yes
LicenseFile=C:\Development\Projects\AssistantNMS\assistantnms_app\installers\LICENCE.txt
LicenseFile=..\LICENCE.md
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=C:\Development\Projects\AssistantNMS\assistantnms_app\installers
OutputDir=.
OutputBaseFilename=AssistantNMS_setup
SetupIconFile=C:\Development\Projects\AssistantNMS\assistantnms_app\installers\favicon.ico
SetupIconFile=favicon.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
Expand All @@ -48,19 +48,19 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\bitsdojo_window_windows_plugin.lib"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\connectivity_plus_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\dynamic_color_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\flutter_secure_storage_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\assistantnms_app.exp"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\assistantnms_app.lib"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\platform_device_id_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\flutter_localization_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\share_plus_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Development\Projects\AssistantNMS\assistantnms_app\build\windows\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "..\build\windows\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\bitsdojo_window_windows_plugin.lib"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\connectivity_plus_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\dynamic_color_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\flutter_secure_storage_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\assistantnms_app.exp"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\assistantnms_app.lib"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\platform_device_id_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\flutter_localization_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\share_plus_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down

0 comments on commit b1ad4f6

Please sign in to comment.