Skip to content

Commit

Permalink
Merge branch 'release/1.0a11'
Browse files Browse the repository at this point in the history
  • Loading branch information
griff committed Nov 2, 2012
2 parents 6455766 + 6d9bdbf commit 96cc1ea
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 21 deletions.
2 changes: 2 additions & 0 deletions App/resources/MetaZ.sdef
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
-->
<command name="quit" code="aevtquit" description="Quit the application.">
<cocoa class="NSQuitCommand"/>
<!--
<parameter name="saving" code="savo" type="save options" optional="yes" description="Should changes be saved before quitting?">
<cocoa key="SaveOptions"/>
</parameter>
-->
</command>

<command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
Expand Down
1 change: 1 addition & 0 deletions App/src/MZMetaLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ MZKIT_EXTERN NSString* const MZMetaLoaderFinishedNotification;
- (NSArray *)types;
- (void)removeAllObjects;
- (void)removeFilesAtIndexes:(NSIndexSet *)indexes;
- (void)removeObjectFromFilesAtIndex:(NSUInteger)idx;
- (BOOL)loadFromFile:(NSString *)fileName;
- (BOOL)loadFromFiles:(NSArray *)fileNames;
- (BOOL)loadFromFile:(NSString *)fileName toIndex:(NSUInteger)index;
Expand Down
19 changes: 17 additions & 2 deletions App/src/MZMetaLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,20 @@ - (void)removeFilesAtIndexes:(NSIndexSet *)indexes
[self didChangeValueForKey:@"files"];
}

- (void)removeObjectFromFilesAtIndex:(NSUInteger)idx
{
[self willChangeValueForKey:@"files"];
[files removeObjectAtIndex:idx];
[self didChangeValueForKey:@"files"];
}

- (void)insertObject:(id)object inFilesAtIndex:(NSUInteger)index
{
[self willChangeValueForKey:@"files"];
[files insertObject:object atIndex:index];
[self didChangeValueForKey:@"files"];
}

-(BOOL)loadFromFile:(NSString *)fileName
{
return [self loadFromFile:fileName toIndex:[files count]];
Expand Down Expand Up @@ -499,6 +513,7 @@ - (void)dealloc
[error release];
[controller release];
[delegate release];
[scriptCommand release];
[super dealloc];
}

Expand All @@ -514,8 +529,8 @@ - (void)dataProvider:(id<MZDataProvider>)provider
fromFile:(NSString *)fileName
error:(NSError *)theError
{
edits = theEdits;
error = theError;
edits = [theEdits retain];
error = [theError retain];

// loadedFile: runs a modeal alert so we use NSEventTrackingRunLoopMode
// to avoid showing more than one alert at a time
Expand Down
13 changes: 8 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Introduction
============================================================
# Introduction

MetaZ is an mp4 meta-data editor for OS X.
It started its life when another great meta-data editor MetaX stopped getting
Expand All @@ -9,8 +8,12 @@ things like no proper window resizing. This lead to us starting MetaZ as a
reimplementation of MetaX with a few ideas of our own sprinkled in there.


Building
============================================================
# Bugs / Feature request

For bugs and feature requests you can use our [issue tracker at github](https://github.com/griff/metaz/issues)


# Building

There are some files missing in the git repository that you will need if you
are going to build your own version of MetaZ.
Expand All @@ -25,4 +28,4 @@ Copy `Plugins/Amazon/Access_template.h` and insert your own credentials.
These files are mostly just taken from MetaX but since I don't have the rights
to use them they are not included in the repository.
I have though made a tar with these files and uploaded it to github:
[missing.tar.gz](http://cloud.github.com/downloads/griff/metaz/missing.tar.gz)
[missing.tar.gz](http://github.com/downloads/griff/metaz/missing.tar.gz)
15 changes: 15 additions & 0 deletions Release/make_diskimage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ TEMPLATE_DMG=$SRCROOT/Release/template.dmg
MASTER_DMG=$BUILT_PRODUCTS_DIR/$PROJECT_NAME-${VERSION}.dmg
WC_DMG=$CONFIGURATION_TEMP_DIR/wc.dmg
WC_DIR=$CONFIGURATION_TEMP_DIR/wc
ARCHIVE_FILENAME="$PROJECT_NAME-$VERSION.zip"
export GITV=`git log -n1 --pretty=oneline --format=%h`

if [ ! -f "${TEMPLATE_DMG}.zip" ]; then
echo
Expand Down Expand Up @@ -58,3 +60,16 @@ else
echo warning Missing stuff
fi

WD=$PWD
cd "$BUILT_PRODUCTS_DIR"
rm -f "$PROJECT_NAME"*.zip
ditto -ck --keepParent "$PROJECT_NAME.app" "$ARCHIVE_FILENAME"

mkdir -p DSYMS
cp -R *.dSYM DSYMS/

#ditto -ck --keepParent "$PROJECT_NAME.app.dSYM" "$PROJECT_NAME-$VERSION-$GITV+dYSM.zip"
ditto -ck DSYMS "$PROJECT_NAME-$VERSION-$GITV+dYSM.zip"
rm -rf DSYMS


2 changes: 1 addition & 1 deletion Release/next_release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0a10
1.0a11
15 changes: 2 additions & 13 deletions Release/sparkle_sign.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if [ "${CONFIGURATION}" != "Release" ]; then exit; fi
if [[ -z "$(security find-generic-password -s "$KEYCHAIN_PRIVKEY_NAME")" ]] ; then exit; fi

PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin
export GITV=`git log -n1 --pretty=oneline --format=%h`

VERSION=$(defaults read "$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info" CFBundleShortVersionString)
FULLVERSION=$(defaults read "$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info" CFBundleVersion)
Expand All @@ -19,21 +18,11 @@ DOWNLOAD_URL="$DOWNLOAD_BASE_URL/$ARCHIVE_FILENAME"

WD=$PWD
cd "$BUILT_PRODUCTS_DIR"
rm -f "$PROJECT_NAME"*.zip
ditto -ck --keepParent "$PROJECT_NAME.app" "$ARCHIVE_FILENAME"

mkdir -p DSYMS
cp -R *.dSYM DSYMS/

#ditto -ck --keepParent "$PROJECT_NAME.app.dSYM" "$PROJECT_NAME-$VERSION-$GITV+dYSM.zip"
ditto -ck DSYMS "$PROJECT_NAME-$VERSION-$GITV+dYSM.zip"
rm -rf DSYMS

SIZE=$(stat -f %z "$ARCHIVE_FILENAME")
PUBDATE=$(date +"%a, %d %b %G %T %z")
HASH=$(openssl dgst -sha1 -binary < "$ARCHIVE_FILENAME")
KEY=$(security find-generic-password -g -s "$KEYCHAIN_PRIVKEY_NAME" 2>&1 1>/dev/null | perl -pe '($_) = /"(.+)"/; s/\\012/\n/g' )
SIGNATURE=$(echo $HASH | openssl dgst -dss1 -sign <(echo "$KEY") | openssl enc -base64)
KEY=$(security find-generic-password -g -s "$KEYCHAIN_PRIVKEY_NAME" 2>&1 1>/dev/null | perl -pe '($_) = /"(.+)"/; s/\\012/\n/g')
SIGNATURE=$(openssl dgst -sha1 -binary < "$ARCHIVE_FILENAME" | openssl dgst -dss1 -sign <(echo "$KEY") | openssl enc -base64)

[ $SIGNATURE ] || { echo Unable to load signing private key with name "'$KEYCHAIN_PRIVKEY_NAME'" from keychain; false; }

Expand Down

0 comments on commit 96cc1ea

Please sign in to comment.