File tree Expand file tree Collapse file tree
RetroArch_Metal.xcodeproj
RetroArch_iOS13.xcodeproj Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ build-retroarch-linux-i686:
349349 - ditto -c -k --sequesterRsrc --keepParent RetroArch.app ${XCPROJECT_NAME}.zip
350350 - mkdir .retroarch-repo
351351 - " cp -r ./* .retroarch-repo"
352+ - echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > .retroarch-repo/.git_version.h
352353 - " mv .retroarch-repo/ retroarch-repo/"
353354
354355# Mac OS Universal, Metal
@@ -402,6 +403,7 @@ build-retroarch-ios-arm64:
402403 - xcodebuild -project pkg/apple/${XCPROJECT_NAME}.xcodeproj -destination ${XCDESTINATION} -config Release -scheme "${XCSCHEME}" -xcconfig pkg/apple/iOS/${XCCONFIG} build
403404 - mkdir .retroarch-repo
404405 - " cp -r ./* .retroarch-repo"
406+ - echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > .retroarch-repo/.git_version.h
405407 - " mv .retroarch-repo/ retroarch-repo/"
406408
407409build-retroarch-ios9 :
@@ -418,6 +420,7 @@ build-retroarch-ios9:
418420 - xcodebuild -project pkg/apple/${XCPROJECT_NAME}.xcodeproj -config Release -scheme "${XCSCHEME}" -xcconfig pkg/apple/iOS/GitLabCI.xcconfig build
419421 - mkdir .retroarch-repo
420422 - " cp -r ./* .retroarch-repo"
423+ - echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > .retroarch-repo/.git_version.h
421424 - " mv .retroarch-repo/ retroarch-repo/"
422425
423426build-retroarch-tvos-arm64 :
Original file line number Diff line number Diff line change 16441644 );
16451645 runOnlyForDeploymentPostprocessing = 0;
16461646 shellPath = /bin/sh;
1647- shellScript = "if [ -d \"$MIST_PATH\" -a -f \"$MIST_PATH\"/libmist.dylib ]; then\n install_name_tool -id @rpath/libmist.dylib \"$MIST_PATH\"/libmist.dylib\nfi\n\ncd \"$SRCROOT\"\necho '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\n";
1647+ shellScript = "if [ -d \"$MIST_PATH\" -a -f \"$MIST_PATH\"/libmist.dylib ]; then\n install_name_tool -id @rpath/libmist.dylib \"$MIST_PATH\"/libmist.dylib\nfi\n\ncd \"$SRCROOT\"\nif [ -f \".git_version.h\" ] ; then\n cp .git_version.h ${DERIVED_FILE_DIR}/git_version.h\nelse\n echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\nfi \n";
16481648 showEnvVarsInLog = 0;
16491649 };
16501650 0720995C29B1258C001642BB /* ShellScript */ = {
16821682 );
16831683 runOnlyForDeploymentPostprocessing = 0;
16841684 shellPath = /bin/sh;
1685- shellScript = "cd \"$SRCROOT\"\necho '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\n";
1685+ shellScript = "cd \"$SRCROOT\"\nif [ -f \".git_version.h\" ] ; then\n cp .git_version.h ${DERIVED_FILE_DIR}/git_version.h\nelse\n echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\nfi \n";
16861686 showEnvVarsInLog = 0;
16871687 };
16881688 07B7872F29EA3B7D0088B74F /* ShellScript */ = {
Original file line number Diff line number Diff line change 14161416 );
14171417 runOnlyForDeploymentPostprocessing = 0;
14181418 shellPath = /bin/sh;
1419- shellScript = "cd \"$SRCROOT\"\necho '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\n";
1419+ shellScript = "cd \"$SRCROOT\"\nif [ -f \".git_version.h\" ] ; then\n cp .git_version.h ${DERIVED_FILE_DIR}/git_version.h\nelse\n echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\nfi \n";
14201420 showEnvVarsInLog = 0;
14211421 };
14221422 07340E8D2B47A4910076B75D /* ShellScript */ = {
14361436 );
14371437 runOnlyForDeploymentPostprocessing = 0;
14381438 shellPath = /bin/sh;
1439- shellScript = "cd \"$SRCROOT\"\necho '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\n";
1439+ shellScript = "cd \"$SRCROOT\"\nif [ -f \".git_version.h\" ] ; then\n cp .git_version.h ${DERIVED_FILE_DIR}/git_version.h\nelse\n echo '#define GIT_VERSION ' $(git rev-parse --short HEAD) > ${DERIVED_FILE_DIR}/git_version.h\nfi \n";
14401440 showEnvVarsInLog = 0;
14411441 };
14421442 9204BE271D319EF300BD49DB /* ShellScript */ = {
You can’t perform that action at this time.
0 commit comments