mirror of https://github.com/procxx/kepka.git
improved xcode build steps
This commit is contained in:
parent
5aecf2d3a3
commit
14e2229503
|
@ -35,8 +35,6 @@ if [ ! -f "./../Mac/Release/Telegram.app/Contents/Frameworks/Updater" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ./../Mac/Release && codesign --force --deep --sign "Developer ID Application: John Preston" Telegram.app && cd ./../../Telegram
|
|
||||||
|
|
||||||
if [ ! -d "./../Mac/Release/Telegram.app/Contents/_CodeSignature" ]; then
|
if [ ! -d "./../Mac/Release/Telegram.app/Contents/_CodeSignature" ]; then
|
||||||
echo "Telegram signature not found!"
|
echo "Telegram signature not found!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -61,6 +59,7 @@ mkdir "./../Mac/Release/deploy/$AppVersionStr/Telegram"
|
||||||
cp -r ./../Mac/Release/Telegram.app ./../Mac/Release/deploy/$AppVersionStr/Telegram/
|
cp -r ./../Mac/Release/Telegram.app ./../Mac/Release/deploy/$AppVersionStr/Telegram/
|
||||||
rm ./../Mac/Release/Telegram.app/Contents/MacOS/Telegram
|
rm ./../Mac/Release/Telegram.app/Contents/MacOS/Telegram
|
||||||
rm ./../Mac/Release/Telegram.app/Contents/Frameworks/Updater
|
rm ./../Mac/Release/Telegram.app/Contents/Frameworks/Updater
|
||||||
|
rm -rf ./../Mac/Release/Telegram.app/Contents/_CodeSignature
|
||||||
mv ./../Mac/Release/tmacupd$AppVersion ./../Mac/Release/deploy/$AppVersionStr/
|
mv ./../Mac/Release/tmacupd$AppVersion ./../Mac/Release/deploy/$AppVersionStr/
|
||||||
mv ./../Mac/Release/tsetup.$AppVersionStr.dmg ./../Mac/Release/deploy/$AppVersionStr/tsetup.$AppVersionStr.dmg
|
mv ./../Mac/Release/tsetup.$AppVersionStr.dmg ./../Mac/Release/deploy/$AppVersionStr/tsetup.$AppVersionStr.dmg
|
||||||
echo "Version $AppVersionStr prepared!";
|
echo "Version $AppVersionStr prepared!";
|
||||||
|
|
|
@ -1243,8 +1243,10 @@
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
F7E50F631C51CD5B5DC0BC43 /* Compile Sources */,
|
F7E50F631C51CD5B5DC0BC43 /* Compile Sources */,
|
||||||
D1C883685E82D5676953459A /* Link Binary With Libraries */,
|
D1C883685E82D5676953459A /* Link Binary With Libraries */,
|
||||||
07C3AF341948FC3B0016CFF1 /* ShellScript */,
|
07C3AF341948FC3B0016CFF1 /* Force Resources Directory */,
|
||||||
07C3AF25194336160016CFF1 /* Resources */,
|
07C3AF25194336160016CFF1 /* Resources */,
|
||||||
|
07489B6B1A28949600348CD9 /* Build Updater */,
|
||||||
|
07489B6D1A28972E00348CD9 /* Sign Application */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
|
@ -1317,13 +1319,42 @@
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXShellScriptBuildPhase section */
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
07C3AF341948FC3B0016CFF1 /* ShellScript */ = {
|
07489B6B1A28949600348CD9 /* Build Updater */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
inputPaths = (
|
||||||
);
|
);
|
||||||
|
name = "Build Updater";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "xcodebuild -project Updater.xcodeproj -configuration $CONFIGURATION";
|
||||||
|
};
|
||||||
|
07489B6D1A28972E00348CD9 /* Sign Application */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Sign Application";
|
||||||
|
outputPaths = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "codesign --force --deep --sign \"Developer ID Application: John Preston\" ./../Mac/$CONFIGURATION/Telegram.app";
|
||||||
|
};
|
||||||
|
07C3AF341948FC3B0016CFF1 /* Force Resources Directory */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
name = "Force Resources Directory";
|
||||||
outputPaths = (
|
outputPaths = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|
Loading…
Reference in New Issue