blob: f8f0b2136b7c43b8c7311b334406a7a6ba58f0b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
# 检查 Mono 编译器是否存在
if ! command -v mcs &> /dev/null; then
echo "ERROR: mcs command not found. Please install Mono."
exit 1
fi
cd "$(dirname "$0")/NotePad/NotePad/"
mkdir -p bin/Linux
# 使用 Mono 编译
mcs \
-target:winexe \
-out:bin/Linux/NotePad.exe \
-r:System.Windows.Forms \
-r:System.Drawing \
-r:System \
-r:System.Data \
-r:System.Xml \
Form1.cs Form1.Designer.cs Program.cs
if [ $? -eq 0 ]; then
echo "SUCCESS"
else
echo "FAILED"
exit 1
fi
|