Apertura del repositorio

This commit is contained in:
2025-05-24 18:09:39 -03:00
parent 76e6359dad
commit d883ddd0d0
35253 changed files with 2891973 additions and 2 deletions
+79
View File
@@ -0,0 +1,79 @@
#!/bin/sh
if [[ $SKIP_NOTARIZATION == "true" ]]; then
echo "Skipping notarization"
exit 0
fi
CONFIG_FILE="$build_secrets_checkout/code-signing-osx/notarize_creds.sh"
if [[ -f "$CONFIG_FILE" ]]; then
source "$CONFIG_FILE"
app_file="$1"
zip_file=${app_file/app/zip}
ditto -c -k --keepParent "$app_file" "$zip_file"
if [[ -f "$zip_file" ]]; then
# res=$(xcrun notarytool store-credentials \
# viewer.profile \
# --verbose 2>*1)
# echo $res
res=$(xcrun notarytool submit "$zip_file" \
--apple-id $USERNAME \
--password $PASSWORD \
--team-id $ASC_PROVIDER \
--wait 2>&1)
echo "Notarytool submit:"
echo $res
if [[ "$res" =~ id:\ ([^[:space:]]+) ]]; then
match="${BASH_REMATCH[1]}"
echo "Notarized with id: [$match]"
else
echo "No match found"
exit 1
fi
# --- WAIT / RETRY LOGIC FOR STAPLER ---
# Try stapler up to 5 times with a 5-second delay in between attempts
max_attempts=5
sleep_seconds=5
attempt=1
while [[ $attempt -le $max_attempts ]]; do
echo "Running stapler (attempt $attempt of $max_attempts)..."
xcrun stapler staple "$app_file"
ret=$?
if [[ $ret -eq 0 ]]; then
echo "Stapling succeeded on attempt $attempt"
break
else
if [[ $attempt -lt $max_attempts ]]; then
echo "Stapling failed (Error $ret). Waiting $sleep_seconds seconds before retry..."
sleep $sleep_seconds
else
echo "Stapling failed after $max_attempts attempts, giving up."
exit 65
fi
fi
attempt=$((attempt + 1))
done
# Delete the zip file to stop it being packed in the dmg
rm -f "$zip_file"
if [[ $? -eq 0 ]]; then
echo "$zip_file deleted successfully."
else
echo "Failed to delete $zip_file"
fi
exit 0
# else
# echo "Notarization error"
# exit 1
# fi
else
echo "Notarization error: ditto failed"
exit 1
fi
else
echo "No config file found - check notarize_creds is present in the secrets"
exit 1
fi
+28
View File
@@ -0,0 +1,28 @@
-- First, convert the disk image to "read-write" format with Disk Utility or hdiutil
-- Mount the image, open the disk image window in the Finder and make it frontmost, then run this script from inside Script Editor
-- After running the script, unmount the disk image, re-mount it, and copy the .DS_Store file off from the command line.
tell application "Finder"
set foo to every item in front window
repeat with i in foo
if the name of i is "Applications" then
set the position of i to {368, 135}
else if the name of i ends with ".app" then
set the position of i to {134, 135}
end if
end repeat
-- There doesn't seem to be a way to set the background picture with applescript, but all the saved .DS_Store files should already have that set correctly.
set foo to front window
set current view of foo to icon view
set toolbar visible of foo to false
set statusbar visible of foo to false
set the bounds of foo to {100, 100, 600, 699}
-- set the position of front window to {100, 100}
-- get {name, position} of every item of front window
get properties of front window
end tell
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

@@ -0,0 +1,23 @@
#!/bin/bash
# just run this script each time after you change the installer's name to fix the icon misalignment
mydir="$(dirname "$0")"
# If there's more than one DMG in more than one build directory, pick the most
# recent one.
dmgfile="$(ls -t "$mydir/../../../../build-darwin-*/newview/*.dmg" | head -n 1)"
dmgwork="$HOME/Desktop/TempBuild.dmg"
mounted="/Volumes/Second Life Installer"
cp -r "$dmgfile" "$dmgwork"
hdid "$dmgwork"
open -a finder "$mounted"
osascript "$mydir/dmg-cleanup.applescript"
umount "$mounted"/
hdid "$dmgwork"
open -a finder "$mounted"
#cp "$mounted"/.DS_Store ~/Desktop/_DS_Store
#chflags nohidden ~/Desktop/_DS_Store
#cp ~/Desktop/_DS_Store "$mydir/firstlook-dmg/_DS_Store"
#cp ~/Desktop/_DS_Store "$mydir/publicnightly-dmg/_DS_Store"
#cp ~/Desktop/_DS_Store "$mydir/release-dmg/_DS_Store"
#cp ~/Desktop/_DS_Store "$mydir/releasecandidate-dmg/_DS_Store"
#umount "$mounted"/
#rm ~/Desktop/_DS_Store "$dmgwork"
@@ -0,0 +1,85 @@
-- This Applescript sets up the installer disk image: size, background image,
-- icon view, background image, icon positioning.
-- Usage: osascript installer-dmg.applescript <volume-name>
-- where <volume-name> is the volume name of the disk image.
on run (volumeName)
tell application "Finder"
tell disk (volumeName as string)
open
set theXOrigin to 200
set theYOrigin to 200
set theWidth to 340
set theHeight to 240
set iconSize to 55
set theBottomRightX to (theXOrigin + theWidth)
set theBottomRightY to (theYOrigin + theHeight)
set dsStore to "\"" & "/Volumes/" & volumeName & "/" & ".DS_STORE\""
tell container window
set current view to icon view
set toolbar visible to false
set statusbar visible to false
set the bounds to {theXOrigin, theYOrigin, theBottomRightX, theBottomRightY}
set statusbar visible to false
set file_list to every file
repeat with i in file_list
if the name of i is "Applications" then
set the position of i to {200, 90}
else if the name of i ends with ".app" then
set the position of i to {50, 90}
end if
end repeat
-- This close-open hack is nessesary to save positions on 10.6 Snow Leopard
close
open
end tell
set opts to the icon view options of container window
tell opts
set icon size to iconSize
set arrangement to not arranged
end tell
set background picture of opts to file "background.png"
update without registering applications
-- Force saving of the size
delay 1
tell container window
set statusbar visible to false
set the bounds to {theXOrigin, theYOrigin, theBottomRightX - 10, theBottomRightY - 10}
end tell
update without registering applications
end tell
delay 1
tell disk (volumeName as string)
tell container window
set statusbar visible to false
set the bounds to {theXOrigin, theYOrigin, theBottomRightX, theBottomRightY}
end tell
update without registering applications
end tell
--give the finder some time to write the .DS_Store file
delay 3
set waitTime to 0
set ejectMe to false
repeat while ejectMe is false
delay 1
set waitTime to waitTime + 1
if (do shell script "[ -f " & dsStore & " ]; echo $?") = "0" then set ejectMe to true
end repeat
log "waited " & waitTime & " seconds for .DS_STORE to be created."
end tell
end run