I made a pkg install my APP but failed to install to other macbooks because of digital signature invalid warning :
"Signed.pkg can't be installed because its digital signture is invalid."
I signed again,but failed to install again with same warning.
bogon:Desktop tanhuang$ productsign --timestamp --sign "Developer ID Installer: Tan Huang (NGMD5RC85D)" HuionDriver.pkg Signed.pkg
productsign: using timestamp authority for signature
productsign: signing product with identity "Developer ID Installer: Tan Huang (NGMD5RC85D)" from keychain /Users/tanhuang/Library/Keychains/login.keychain-db
productsign: adding certificate "Developer ID Certification Authority"
productsign: adding certificate "Apple Root CA"
productsign: Wrote signed product archive to Signed.pkg
bogon:Desktop tanhuang$ codesign -dvvv Signed.pkg
Signed.pkg: code object is not signed at all
bogon:Desktop tanhuang$ spctl --assess -v Signed.pkg
Signed.pkg: rejected
source=no usable signature
bogon:Desktop tanhuang$ spctl --assess -v --type install Signed.pkg
Signed.pkg: accepted
source=Developer ID
How to sign the pkg?