1.打包app
flutter build macos --release

2.不签名打包pkg
xcrun productbuild --component build/macos/Build/Products/Release/mathly.app mathly.pkg

3.pkg文件直接安装

4.安装成功后在应用程序里找不到,不确定原因,可能跟没签名有关,于是在访达里搜索mathly,找到应用程序的mathly,

5.拖动mathly到左边栏的应用程序里,就可以在应用程序里看到了
