mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IJI-932 required Python dependencies are now installed in a virtual environment
GitOrigin-RevId: 8def868c87acdd853dbb3b66e02b7ce67bd3d578
This commit is contained in:
committed by
intellij-monorepo-bot
parent
44518a9239
commit
eaa07bcc6c
@@ -23,12 +23,15 @@ function buildDmg() {
|
||||
cp "$buildFile" "$buildDir"
|
||||
fi
|
||||
done
|
||||
echo "Extracting $sit.."
|
||||
unzip -q -o "$sit" -d "$buildDir/$explodedSitDir"
|
||||
(
|
||||
cd "$buildDir"
|
||||
unzip -q -o "../$sit" -d $explodedSitDir
|
||||
bash ./staple.sh $explodedSitDir "$staple"
|
||||
bash ./makedmg.sh "$dmgName" "$appName" "$dmg" $explodedSitDir $cleanUpExploded "$contentSigned"
|
||||
mv "$dmg" "../$dmg"
|
||||
trap 'cd .. && rm -rf "$buildDir"' EXIT
|
||||
# set -e doesn't have any effect in here
|
||||
bash ./staple.sh $explodedSitDir "$staple" &&
|
||||
bash ./makedmg.sh "$dmgName" "$appName" "$dmg" $explodedSitDir $cleanUpExploded "$contentSigned" &&
|
||||
mv "$dmg" "../$dmg"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,19 @@ log "BUILD_NAME is $BUILD_NAME"
|
||||
VOLNAME="${BUILD_NAME%.app}"
|
||||
log "VOLNAME is $VOLNAME"
|
||||
|
||||
function generate_DS_Store() {
|
||||
if ! python3 --version; then
|
||||
log "python3 is required for DMG/DS_Store generation"
|
||||
exit 1
|
||||
fi
|
||||
log "ds_store library is required for DMG/DS_Store generation, installing in a Python virtual environment"
|
||||
python3 -m venv .
|
||||
./bin/pip3 install mac-alias==2.2.0 ds-store==1.3.0
|
||||
./bin/python3 makedmg.py "$VOLNAME" "$BG_PIC" "$1"
|
||||
log "DMG/DS_Store is generated"
|
||||
rm -rf "/Volumes/$1/.fseventsd"
|
||||
}
|
||||
|
||||
mkdir "${EXPLODED}/.background"
|
||||
if [ -f "${BG_PIC}" ]; then
|
||||
mv "${BG_PIC}" "${EXPLODED}/.background"
|
||||
@@ -98,17 +111,8 @@ find "/Volumes/$1" -maxdepth 1
|
||||
log "Updating $VOLNAME disk image styles..."
|
||||
stat "/Volumes/$1/DSStorePlaceHolder"
|
||||
rm "/Volumes/$1/DSStorePlaceHolder"
|
||||
if ! python3 --version; then
|
||||
log "python3 is required for DMG/DS_Store generation"
|
||||
exit 1
|
||||
elif ! python3 -c "import ds_store; import mac_alias;" >/dev/null 2>/dev/null; then
|
||||
log "ds_store library is required for DMG/DS_Store generation, installing"
|
||||
pip3 install mac-alias==2.2.0 --user
|
||||
pip3 install ds-store==1.3.0 --user
|
||||
fi
|
||||
python3 makedmg.py "$VOLNAME" "$BG_PIC" "$1"
|
||||
log "DMG/DS_Store is generated"
|
||||
rm -rf "/Volumes/$1/.fseventsd"
|
||||
|
||||
generate_DS_Store "$1"
|
||||
|
||||
if [[ -n ${SOURCE_DATE_EPOCH+x} ]]; then
|
||||
timestamp=$(date -r "$SOURCE_DATE_EPOCH" +%Y%m%d%H%m)
|
||||
|
||||
Reference in New Issue
Block a user