diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-05 16:45:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-05 16:45:29 +0800 |
| commit | 00c5ce748b56c672d2f4e796d3f0b263200f95f8 (patch) | |
| tree | f38de9716c237f71e5f4b3b39488b4d5727ae20c /lin_run.sh | |
| parent | de45aece667af6a25c1840d4cdfc27935fb0b490 (diff) | |
增加了对 Linux 平台的支持
使用 Mono (mcs) 和 Wine (wine) 的方式让项目能在 Linux 系统上运行
- 增加 `lin_build.sh` 和 `lin_run.sh` 脚本,用于编译和执行
- 修改 `Program.cs`:使 Mono 平台不会调用
Application.SetHighDpiMode(HighDpiMode.SystemAware); 函数
- 最后,谴责 *SmallFox*,居然不选择跨平台的框架 \斜眼笑
Diffstat (limited to 'lin_run.sh')
| -rwxr-xr-x | lin_run.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lin_run.sh b/lin_run.sh new file mode 100755 index 0000000..148fd06 --- /dev/null +++ b/lin_run.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# 检查 Wine 是否存在 +if ! command -v wine &> /dev/null; then + echo "ERROR: wine command not found. Please install Wine." + exit 1 +fi + +cd "$(dirname "$0")/NotePad/NotePad/" + +# 使用 Wine 运行 NotePad.exe +wine ./bin/Linux/NotePad.exe |
