Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
5ed2b17d
Commit
5ed2b17d
authored
8 years ago
by
Vladimir.Orlov
Committed by
Vladimir.Orlov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-CR-20747
(cherry picked from commit
c78d3e59
)
parent
11303a8a
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/build-scripts/tools/mac/scripts/signapp.sh
+8
-5
platform/build-scripts/tools/mac/scripts/signapp.sh
platform/build-scripts/tools/mac/scripts/signbin.sh
+9
-6
platform/build-scripts/tools/mac/scripts/signbin.sh
with
17 additions
and
11 deletions
+17
-11
platform/build-scripts/tools/mac/scripts/signapp.sh
+
8
-
5
View file @
5ed2b17d
#!/bin/bash
#immediately exit script with an error if a command fails
set
-euo
pipefail
export
COPY_EXTENDED_ATTRIBUTES_DISABLE
=
true
export
COPYFILE_DISABLE
=
true
EXPLODED
=
$2
.exploded
...
...
@@ -69,22 +72,22 @@ security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/log
attemp
=
1
limit
=
3
set
+e
while
[
$attemp
-le
$limit
]
do
echo
"signing (attemp
$attemp
)
${
EXPLODED
}
/
$BUILD_NAME
"
codesign
-v
--deep
--force
-s
"
${
CODESIGN_STRING
}
"
${
EXPLODED
}
/
"
$BUILD_NAME
"
echo
"signing done"
codesign
-v
${
EXPLODED
}
/
"
$BUILD_NAME
"
-vvvvv
echo
"check sign done"
if
[
"
$?
"
!=
"0"
]
;
then
let
"attemp += 1"
if
[
$attemp
-eq
$limit
]
;
then
#immediately exit script with an error if a command fails
set
-euo
pipefail
set
-e
fi
echo
"wait for 30 sec and try to sign again"
sleep
30
;
else
echo
"signing done"
codesign
-v
${
EXPLODED
}
/
"
$BUILD_NAME
"
-vvvvv
echo
"check sign done"
let
"attemp +=
$limit
"
fi
done
...
...
This diff is collapsed.
Click to expand it.
platform/build-scripts/tools/mac/scripts/signbin.sh
+
9
-
6
View file @
5ed2b17d
#!/bin/bash
#immediately exit script with an error if a command fails
set
-euo
pipefail
FILENAME
=
$1
USERNAME
=
$2
PASSWORD
=
$3
...
...
@@ -11,22 +14,22 @@ security unlock-keychain -p ${PASSWORD} /Users/${USERNAME}/Library/Keychains/log
attemp
=
1
limit
=
3
set
+e
while
[
$attemp
-le
$limit
]
do
echo
"signing (attemp
$attemp
)
${
FILEPATH
}
"
codesign
-v
--deep
--force
-s
"
${
CODESIGN_STRING
}
"
${
FILEPATH
}
echo
"signing done"
codesign
-v
${
FILEPATH
}
-vvvvv
echo
"check sign done"
if
[
"
$?
"
!=
"0"
]
;
then
let
"attemp += 1"
if
[
$attemp
-eq
$limit
]
;
then
#immediately exit script with an error if a command fails
set
-euo
pipefail
set
-e
fi
echo
"wait for 30 sec and try to sign again"
sleep
30
;
else
let
"attemp +=
$limit
"
fi
echo
"signing done"
codesign
-v
${
FILEPATH
}
-vvvvv
echo
"check sign done"
fi
done
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help