Skip to content

Commit db6df3d

Browse files
committed
Macos 支付页面不在查询 Apple Products, Makefile Mac 编译增加签名命令
1 parent 39e8b6d commit db6df3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ build-android:
1515

1616
build-macos:
1717
flutter build macos --no-tree-shake-icons --release
18+
codesign -f -s "Developer ID Application: YIYAO GUAN (N95437SZ2A)" build/macos/Build/Products/Release/AIdea.app
19+
productbuild --component AIdea.app /Applications --sign "Developer ID Installer: YIYAO GUAN (N95437SZ2A)" --product AIdea.app/Contents/Info.plist AIdea.pkg
1820
open build/macos/Build/Products/Release/
1921

2022
build-web:

lib/bloc/payment_bloc.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ part 'payment_state.dart';
1111
class PaymentBloc extends Bloc<PaymentEvent, PaymentState> {
1212
PaymentBloc() : super(PaymentInitial()) {
1313
on<PaymentLoadAppleProducts>((event, emit) async {
14-
if (PlatformTool.isIOS() || PlatformTool.isMacOS()) {
14+
if (PlatformTool.isIOS()) {
1515
final products = await APIServer().applePayProducts();
1616
if (products.consume.isEmpty) {
1717
emit(PaymentAppleProductsLoaded(

0 commit comments

Comments
 (0)