Skip to content

Commit 633c724

Browse files
committed
1
1 parent 40f3cf0 commit 633c724

44 files changed

Lines changed: 2033 additions & 73 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
*.pyc
55
*.swp
66
.DS_Store
7+
**/.DS_Store
78
.atom/
9+
.build/
810
.buildlog/
911
.history
1012
.svn/
13+
.swiftpm/
1114
migrate_working_dir/
1215

1316
# IntelliJ related
@@ -33,6 +36,7 @@ migrate_working_dir/
3336
build/
3437
installer/
3538
test/
39+
dist/
3640

3741
# Symbolication related
3842
app.*.symbols
@@ -57,5 +61,21 @@ ENV/
5761
env.bak/
5862
venv.bak/
5963

64+
# macOS specific
65+
.AppleDouble
66+
.LSOverride
67+
.Spotlight-V100
68+
.Trashes
69+
.fseventsd
70+
Icon?
71+
._*
72+
73+
# Xcode / CocoaPods / macOS build artifacts
74+
macos/Runner.xcworkspace/xcuserdata/
75+
macos/Runner.xcodeproj/project.xcworkspace/xcuserdata/
76+
macos/Runner.xcodeproj/xcuserdata/
77+
DerivedData/
78+
Pods/
79+
6080
# History files
6181
history.json

.metadata

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ migration:
1515
- platform: root
1616
create_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
1717
base_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
18-
- platform: web
19-
create_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
20-
base_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
21-
- platform: windows
18+
- platform: macos
2219
create_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
2320
base_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
2421

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![](./assets/images/demo/2025-12-31-12-17-06.png)
44

5-
一个现代化的网络计算器应用,提供专业的 IP 地址计算、子网划分、路由聚合等功能,采用 Flutter 开发,支持 Windows 桌面和 Web 平台。
5+
一个现代化的网络计算器应用,提供专业的 IP 地址计算、子网划分、路由聚合等功能,采用 Flutter 开发,支持 Windows 桌面、macOS 桌面和 Web 平台。
66

77
**语言 / Language / げんご**: [简体中文](README.md) | [English](README_EN.md) | [日本語](README_JA.md)
88

@@ -62,6 +62,12 @@ flutter clean && flutter pub get
6262
flutter run -d windows
6363
```
6464

65+
**桌面版 (macOS):**
66+
67+
```bash
68+
flutter run -d macos
69+
```
70+
6571
**Web 版:**
6672

6773
```bash
@@ -92,7 +98,7 @@ flutter run -d chrome
9298

9399
## 📦 发布
94100

95-
### 1. 可执行程序制作
101+
### 1. 可执行程序制作(Windows)
96102

97103
**构建 Windows 桌面应用:**
98104

@@ -112,14 +118,37 @@ InnoSetup.bat
112118
EnigmaVirtualBox.bat
113119
```
114120

115-
### 2. web 部署
121+
### 2. macOS DMG 安装包
122+
123+
**一键准备 macOS 环境(除 Homebrew / Xcode 外):**
124+
125+
```bash
126+
cd /Users/chanlonhoo/Documents/GitHub/network-calculator
127+
chmod +x scripts/setup_macos_env.sh
128+
./scripts/setup_macos_env.sh
129+
```
130+
131+
**一键构建 macOS .app + DMG 安装包:**
132+
133+
```bash
134+
cd /Users/chanlonhoo/Documents/GitHub/network-calculator
135+
./scripts/build_macos_dmg.sh
136+
```
137+
138+
生成的安装包位于:
139+
140+
```bash
141+
dist/Network-Calculator.dmg
142+
```
143+
144+
### 3. web 部署
116145

117146
**构建 Web 应用:**
118147
```bash
119148
flutter build web --release
120149
```
121150

122-
1. Setting > Pages > Build and deployment > Action
151+
1. Setting > Pages > Build and deployment > Action
123152
2. 发布到 Github Pages
124153

125154
```bash

image/README/1767701604322.png

35.4 KB
Loading

image/README/1767701678821.png

35.4 KB
Loading

0 commit comments

Comments
 (0)