mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15:35 +03:00
Fixed iOS audio issues
This commit is contained in:
parent
b68734d679
commit
d56565990e
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@ logs/
|
||||
/desktop/mindustry-maps/
|
||||
/desktop/gifexport/
|
||||
/core/lib/
|
||||
/ios/assets/
|
||||
/core/assets-raw/sprites/generated/
|
||||
/core/assets-raw/sprites_out/
|
||||
/annotations/build/
|
||||
|
@ -7,6 +7,33 @@ ext{
|
||||
mainClassName = "io.anuke.mindustry.IOSLauncher"
|
||||
}
|
||||
|
||||
task copyAssets(){
|
||||
delete{
|
||||
delete "assets/"
|
||||
}
|
||||
|
||||
copy{
|
||||
from "../core/assets"
|
||||
into "assets/"
|
||||
}
|
||||
|
||||
exec{
|
||||
commandLine "sh", "./convert_audio.sh", "assets/sounds"
|
||||
}
|
||||
|
||||
exec{
|
||||
commandLine "sh", "./convert_audio.sh", "assets/music"
|
||||
}
|
||||
|
||||
delete{
|
||||
delete fileTree('assets') {
|
||||
include '**/*.ogg'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn copyAssets
|
||||
|
||||
launchIPhoneSimulator.dependsOn build
|
||||
launchIPadSimulator.dependsOn build
|
||||
launchIOSDevice.dependsOn build
|
||||
|
7
ios/convert_audio.sh
Executable file
7
ios/convert_audio.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
#convert ogg to .caf files for iOS
|
||||
for i in $1/*.ogg; do
|
||||
echo $i
|
||||
ffmpeg -i "$i" "${i%.*}.caf"
|
||||
done
|
@ -7,7 +7,7 @@
|
||||
<iosInfoPList>Info.plist.xml</iosInfoPList>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>../core/assets</directory>
|
||||
<directory>../ios/assets</directory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
|
Loading…
Reference in New Issue
Block a user