MAC电脑打包

This commit is contained in:
2026-03-19 12:20:42 +08:00
parent f3e4282968
commit 7a8d63ae88
15 changed files with 49 additions and 53 deletions
@@ -1240,7 +1240,7 @@
CODE_SIGN_ENTITLEMENTS = HBuilder/HBuilder.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 113;
CURRENT_PROJECT_VERSION = 279;
DEVELOPMENT_TEAM = 2EP6SRRN43;
ENABLE_BITCODE = NO;
ENABLE_TESTABILITY = YES;
@@ -1273,7 +1273,7 @@
"$(SRCROOT)/../SDK/libs/**",
"$(PROJECT_DIR)",
);
MARKETING_VERSION = 1.0.5;
MARKETING_VERSION = 1.0.3;
OTHER_CFLAGS = (
"-mllvm",
"-ipo",
@@ -1322,7 +1322,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 113;
CURRENT_PROJECT_VERSION = 279;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 2EP6SRRN43;
ENABLE_BITCODE = NO;
@@ -1355,7 +1355,7 @@
"$(SRCROOT)/../SDK/libs/**",
"$(PROJECT_DIR)",
);
MARKETING_VERSION = 1.0.5;
MARKETING_VERSION = 1.0.3;
OTHER_CFLAGS = (
"-mllvm",
"-ipo",
File diff suppressed because one or more lines are too long
@@ -7,8 +7,8 @@
"id": "__UNI__EDE0E52",
"name": "吉AI学",
"version": {
"name": "0.3.1",
"code": 271
"name": "0.2.1",
"code": 277
},
"description": "",
"developer": {
@@ -75,33 +75,33 @@
},
"icons": {
"android": {
"hdpi": "",
"xhdpi": "",
"xxhdpi": "",
"xxxhdpi": ""
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios": {
"appstore": "",
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "",
"app@2x": "",
"notification": "",
"notification@2x": "",
"proapp@2x": "",
"settings": "",
"settings@2x": "",
"spotlight": "",
"spotlight@2x": ""
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "",
"app@3x": "",
"notification@2x": "",
"notification@3x": "",
"settings@2x": "",
"settings@3x": "",
"spotlight@2x": "",
"spotlight@3x": ""
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
},
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,3 +1,3 @@
{
"deploymentTarget": "35"
"deploymentTarget": "13"
}
@@ -272,13 +272,13 @@ public var recordStartTime: NSNumber? = nil
public func preRequestRecordPermission(_ callback: ((_ granted: Bool) -> Void)?) {
var audioSession = AVAudioSession.sharedInstance()
do {
try audioSession.setCategory(AVAudioSession.Category.record, mode: AVAudioSession.Mode.default)
try audioSession.setCategory(AVAudioSession.Category.record)
try audioSession.setActive(true)
audioSession.requestRecordPermission({
(granted: Bool) -> Void in
console.log("预申请麦克风权限结果:", granted)
do {
try audioSession.setActive(false, options: AVAudioSession.SetActiveOptions.notifyOthersOnDeactivation)
try audioSession.setActive(false)
}
catch let e {
var e = UTSError(e)
@@ -300,7 +300,7 @@ public func startAudioRecord(_ options: StartAudioRecordOptions) {
}
do {
var audioSession = AVAudioSession.sharedInstance()
try audioSession.setCategory(AVAudioSession.Category.playAndRecord, mode: AVAudioSession.Mode.spokenAudio, options: AVAudioSession.CategoryOptions.duckOthers)
try audioSession.setCategory(AVAudioSession.Category.record)
try audioSession.setActive(true)
isRecording = true
audioSession.requestRecordPermission({
@@ -308,10 +308,7 @@ public func startAudioRecord(_ options: StartAudioRecordOptions) {
if (!granted) {
do {
try audioSession.setActive(false, options: AVAudioSession.SetActiveOptions.notifyOthersOnDeactivation)
} catch let e {
var e = UTSError(e)
console.warn("停用音频会话失败:", e)
}
} catch let e {}
isRecording = false
var err = StartAudioRecordFailImpl(9010002)
options.onError?(err)
@@ -334,8 +331,7 @@ public func startAudioRecord(_ options: StartAudioRecordOptions) {
var targetFormat = AVAudioFormat.init(commonFormat: AVAudioCommonFormat.pcmFormatInt16, sampleRate: targetSampleRate, channels: inputFormat.channelCount, interleaved: false)
unwrappedInputNode.installTap(onBus: 0, bufferSize: 2048, format: inputFormat, block: {
(buffer: AVAudioPCMBuffer, time: Any) -> Void in
var frameLen = buffer.frameLength as! NSNumber
var inputFrameLen = frameLen as! Double
var inputFrameLen = Double(buffer.frameLength)
var sampleRateRatio = targetSampleRate / inputFormat.sampleRate
var outputFrameCounta = inputFrameLen * sampleRateRatio
var outputFrameCount = AVAudioFrameCount(outputFrameCounta)