forked from 1760002018/cesvga2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·21 lines (21 loc) · 2.01 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
#
# CEsvga2 - ChrisEric1 Super Video Graphics Array 2
# Copyright (C) 2023-2024, Christopher Eric Lentocha
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
#
rm -rfv "./keout" && rm -rfv "./build" && python3 -m pip install -r "./requirements.txt" && xcodebuild build -project="./CEsvga2.xcodeproj" -configuration i386 && xcodebuild build -project="./CEsvga2.xcodeproj" -configuration x86_64 && python3 "./fix-macho32.py" "./build/i386/CEsvga2.kext/Contents/MacOS/CEsvga2" && mkdir -pv "./keout/" && cp -rfv "./build/i386" "./keout/universal" && rm -rfv "./keout/universal/CEsvga2.kext/Contents/MacOS/CEsvga2" && lipo -create -output "./keout/universal/CEsvga2.kext/Contents/MacOS/CEsvga2" "./build/i386/CEsvga2.kext/Contents/MacOS/CEsvga2" "./build/x86_64/CEsvga2.kext/Contents/MacOS/CEsvga2" && python3 "./fix-macho32.py" "./keout/universal/CEsvga2.kext/Contents/MacOS/CEsvga2" && rm -rfv "./build/i386/CEsvga2.kext/Contents/_CodeSignature" && rm -rfv "./build/x86_64/CEsvga2.kext/Contents/_CodeSignature" && rm -rfv "./keout/universal/CEsvga2.kext/Contents/_CodeSignature" && cp -rfv "./Info-i386.plist" "./build/i386/CEsvga2.kext/Contents/Info.plist" && cp -rfv "./Info-x86_64.plist" "./build/x86_64/CEsvga2.kext/Contents/Info.plist" && cp -rfv "./Info-universal.plist" "./keout/universal/CEsvga2.kext/Contents/Info.plist" && cp -rfv "./build/i386" "./keout/" && cp -rfv "./build/x86_64" "./keout/"