Skip to content

Instantly share code, notes, and snippets.

View huishannetaporter's full-sized avatar

huishannetaporter

View GitHub Profile
@huishannetaporter
huishannetaporter / finishedScript.sh
Created August 1, 2019 09:23
finishedScript.sh
# Create the .itmsp folder
mkdir <path to your .itmsp folder>/<name of your .itmsp folder>.itmsp
# Move your .ipa file into the .itmsp folder
cp <path to where your .ipa file is stored> <path to your .itmsp folder>/<name of your .itmsp folder >.itmsp
# Generate the metadata.xml file
fileSize=` stat -f %z <Your .ipa file>`
md5Checksum=`md5 <Your .ipa file> | cut -d "=" -f 2 | awk '{print $1}'`
/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin
@huishannetaporter
huishannetaporter / finalScript.sh
Last active March 27, 2021 07:07
finalScript.sh
# Create the .itmsp folder
mkdir <path to your .itmsp folder>/<name of your .itmsp folder>.itmsp
# Move your .ipa file into the .itmsp folder
cp <path to where your .ipa file is stored> <path to your .itmsp folder>/<name of your .itmsp folder >.itmsp
# Generate the metadata.xml file
fileSize=` stat -f %z <Your .ipa file>`
md5Checksum=`md5 <Your .ipa file> | cut -d "=" -f 2 | awk '{print $1}'`
/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter -m upload -u <Your username>
-p <Your password> -f <Location of the .itmsp file> -t DAV -t Signiant -k 100000 -v eXtreme
fileSize=` stat -f %z <Your .ipa file>`
md5Checksum=`md5 <Your .ipa file> | cut -d "=" -f 2 | awk '{print $1}'`
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > <path to your .itmsp folder>/metadata.xml
echo "<package xmlns=\"http://apple.com/itunes/importer\" version=\"software5.4\">" >> <path to your .itmsp folder>/metadata.xml
echo " <software_assets apple_id=\"<Your Apple ID>\" app_platform=\"ios\">" >> <path to your .itmsp folder>/metadata.xml
echo " <asset type=\"bundle\">" >> <path to your .itmsp folder>/metadata.xml
echo " <data_file>" >> metadata.xml
echo " <size>$fileSize</size>" >> <path to your .itmsp folder>/metadata.xml
echo " <file_name>nap.ipa</file_name>" >> <path to your .itmsp folder>/metadata.xml
md5 <Your .ipa file> | cut -d "=" -f 2 | awk '{print $1}'
@huishannetaporter
huishannetaporter / fileSize.sh
Created July 28, 2019 12:45
CalculateFileSize
stat -f %z <Your .ipa file>
@huishannetaporter
huishannetaporter / fileSize.sh
Created July 28, 2019 12:45
CalculateFileSize
stat -f %z <Your .ipa file>
@huishannetaporter
huishannetaporter / sampleMetadata.xml
Last active July 28, 2019 12:46
sampleMetadata file
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://apple.com/itunes/importer" version="software5.4">
<software_assets apple_id="Your Apple ID" app_platform="ios">
<asset type="bundle">
<data_file>
<size><Size of your .ipa file></size>
<file_name><Your .ipa file name>.ipa</file_name>
<checksum type="md5"><Generated MD5 checksum></checksum>
</data_file>
</asset>
cp <path to where your .ipa file is stored> <path to your .itmsp folder>/<name of your .itmsp folder >.itmsp