Skip to content

Commit cb0f396

Browse files
committed
feat: Update project configuration and add Windows installer with app icon
1 parent 74a70c7 commit cb0f396

10 files changed

Lines changed: 94 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ app.*.map.json
4545
/android/app/release
4646

4747
# FVM Version Cache
48-
.fvm/
48+
.fvm/
49+
50+
.vscode/

.vscode/settings.json

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
11
{
2-
"dart.flutterSdkPath": ".fvm\\versions\\3.35.7"
2+
"dart.flutterSdkPath": ".fvm\\versions\\3.35.7",
3+
"C_Cpp_Runner.cCompilerPath": "gcc",
4+
"C_Cpp_Runner.cppCompilerPath": "g++",
5+
"C_Cpp_Runner.debuggerPath": "gdb",
6+
"C_Cpp_Runner.cStandard": "",
7+
"C_Cpp_Runner.cppStandard": "",
8+
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat",
9+
"C_Cpp_Runner.useMsvc": false,
10+
"C_Cpp_Runner.warnings": [
11+
"-Wall",
12+
"-Wextra",
13+
"-Wpedantic",
14+
"-Wshadow",
15+
"-Wformat=2",
16+
"-Wcast-align",
17+
"-Wconversion",
18+
"-Wsign-conversion",
19+
"-Wnull-dereference"
20+
],
21+
"C_Cpp_Runner.msvcWarnings": [
22+
"/W4",
23+
"/permissive-",
24+
"/w14242",
25+
"/w14287",
26+
"/w14296",
27+
"/w14311",
28+
"/w14826",
29+
"/w44062",
30+
"/w44242",
31+
"/w14905",
32+
"/w14906",
33+
"/w14263",
34+
"/w44265",
35+
"/w14928"
36+
],
37+
"C_Cpp_Runner.enableWarnings": true,
38+
"C_Cpp_Runner.warningsAsError": false,
39+
"C_Cpp_Runner.compilerArgs": [],
40+
"C_Cpp_Runner.linkerArgs": [],
41+
"C_Cpp_Runner.includePaths": [],
42+
"C_Cpp_Runner.includeSearch": [
43+
"*",
44+
"**/*"
45+
],
46+
"C_Cpp_Runner.excludeSearch": [
47+
"**/build",
48+
"**/build/**",
49+
"**/.*",
50+
"**/.*/**",
51+
"**/.vscode",
52+
"**/.vscode/**"
53+
],
54+
"C_Cpp_Runner.useAddressSanitizer": false,
55+
"C_Cpp_Runner.useUndefinedSanitizer": false,
56+
"C_Cpp_Runner.useLeakSanitizer": false,
57+
"C_Cpp_Runner.showCompilationTime": false,
58+
"C_Cpp_Runner.useLinkTimeOptimization": false,
59+
"C_Cpp_Runner.msvcSecureNoWarnings": false
360
}

assets/icons/app.ico

14.7 KB
Binary file not shown.

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: hushnet_frontend
2-
description: "A new Flutter project."
2+
description: "End-to-end encrypted messaging app"
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
11.3 MB
Binary file not shown.

scripts/windows_installer.iss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#define MyAppDir ".."
2+
3+
[Setup]
4+
AppName=HushNet
5+
AppVersion=1.0.0
6+
DefaultDirName={autopf}\HushNet
7+
DefaultGroupName=HushNet
8+
OutputDir=build\windows\installer
9+
OutputBaseFilename=HushNetInstaller
10+
Compression=lzma
11+
SolidCompression=yes
12+
ArchitecturesAllowed=x64os
13+
ArchitecturesInstallIn64BitMode=x64os
14+
SetupIconFile={#MyAppDir}\assets\icons\app.ico
15+
16+
[Files]
17+
Source: "{#MyAppDir}\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
18+
19+
[Icons]
20+
Name: "{autoprograms}\HushNet"; Filename: "{app}\hushnet_frontend.exe"
21+
Name: "{autodesktop}\HushNet"; Filename: "{app}\hushnet_frontend.exe"; Tasks: desktopicon
22+
23+
[Tasks]
24+
Name: "desktopicon"; Description: "Create desktop icon"; GroupDescription: "Icons:"
25+
26+
[Run]
27+
Filename: "{app}\hushnet_frontend.exe"; Description: "Launch HushNet"; Flags: nowait postinstall skipifsilent

windows/runner/Runner.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ BEGIN
9090
BLOCK "040904e4"
9191
BEGIN
9292
VALUE "CompanyName", "com.example" "\0"
93-
VALUE "FileDescription", "hushnet_frontend" "\0"
93+
VALUE "FileDescription", "HushNet" "\0"
9494
VALUE "FileVersion", VERSION_AS_STRING "\0"
9595
VALUE "InternalName", "hushnet_frontend" "\0"
9696
VALUE "LegalCopyright", "Copyright (C) 2025 com.example. All rights reserved." "\0"

windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
2727
FlutterWindow window(project);
2828
Win32Window::Point origin(10, 10);
2929
Win32Window::Size size(1280, 720);
30-
if (!window.Create(L"hushnet_frontend", origin, size)) {
30+
if (!window.Create(L"HushNet", origin, size)) {
3131
return EXIT_FAILURE;
3232
}
3333
window.SetQuitOnClose(true);
-18.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)