From d0c14011c6912daf49ec8742ed72583949272032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Wed, 20 Aug 2014 10:28:07 +0200 Subject: [PATCH] Add --filesync option. Love file stays in release dir --- love-release.sh | 9 ++------- scripts/android.sh | 1 - scripts/debian.sh | 1 - scripts/macosx.sh | 2 +- scripts/windows.sh | 2 +- 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/love-release.sh b/love-release.sh index 0443cb8..1bc5322 100755 --- a/love-release.sh +++ b/love-release.sh @@ -159,19 +159,14 @@ create_love_file () cd "$PROJECT_DIR" rm -rf "$RELEASE_DIR"/"$PROJECT_NAME".love 2> /dev/null if [ -z "$PROJECT_FILES" ]; then - zip -$1 -r "$RELEASE_DIR"/"$PROJECT_NAME".love -x "$0" "$MAIN_RELEASE_DIR"/\* $EXCLUDE_FILES @ * + zip --filesync -$1 -r "$RELEASE_DIR"/"$PROJECT_NAME".love -x "$0" "$MAIN_RELEASE_DIR"/\* $EXCLUDE_FILES @ * else - zip -$1 -r "$RELEASE_DIR"/"$PROJECT_NAME".love -x "$0" "$MAIN_RELEASE_DIR"/\* $EXCLUDE_FILES @ $PROJECT_FILES + zip --filesync -$1 -r "$RELEASE_DIR"/"$PROJECT_NAME".love -x "$0" "$MAIN_RELEASE_DIR"/\* $EXCLUDE_FILES @ $PROJECT_FILES fi cd "$RELEASE_DIR" LOVE_FILE="$PROJECT_NAME".love } -remove_love_file () -{ - rm -rf "$LOVE_FILE" -} - ## $1: exit code. 0 - success, other - failure ## $2: error message exit_module () diff --git a/scripts/android.sh b/scripts/android.sh index 694b907..a5067c0 100644 --- a/scripts/android.sh +++ b/scripts/android.sh @@ -104,6 +104,5 @@ else fi -remove_love_file exit_module diff --git a/scripts/debian.sh b/scripts/debian.sh index 16c2cb8..7018b1a 100644 --- a/scripts/debian.sh +++ b/scripts/debian.sh @@ -111,6 +111,5 @@ cd "$RELEASE_DIR" rm -rf $TEMP -remove_love_file exit_module diff --git a/scripts/macosx.sh b/scripts/macosx.sh index 8297209..98ebbcc 100644 --- a/scripts/macosx.sh +++ b/scripts/macosx.sh @@ -136,6 +136,6 @@ else rm -rf love-$LOVE_VERSION-macosx-ub.zip "$PROJECT_NAME".app __MACOSX fi -remove_love_file + exit_module diff --git a/scripts/windows.sh b/scripts/windows.sh index 2ce4c31..bbbbdfe 100644 --- a/scripts/windows.sh +++ b/scripts/windows.sh @@ -94,6 +94,6 @@ if [ "$RELEASE_WIN_64" = true ] && [ "$LOVE_GT_080" = true ]; then rm -rf love-$LOVE_VERSION-win64.zip love-$LOVE_VERSION-win64 fi -remove_love_file + exit_module