mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Fix for #23, but Windows icons doesn't work yet.
This commit is contained in:
2
Makefile
2
Makefile
@@ -16,6 +16,7 @@ love-release: deps clean
|
|||||||
for file in scripts/*.sh; do \
|
for file in scripts/*.sh; do \
|
||||||
s="$$(grep -E -m 1 "^OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/OPTIONS=['\"]?//" -e "s/['\"]?$$//")"; \
|
s="$$(grep -E -m 1 "^OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/OPTIONS=['\"]?//" -e "s/['\"]?$$//")"; \
|
||||||
short="$${s}$${short}"; \
|
short="$${s}$${short}"; \
|
||||||
|
s="$$(echo "$$s" | sed -e "s/[:]*$$//")"; \
|
||||||
l="$$s$$(echo "$$longopt" | sed -e "s/,/,$${s}/g")"; \
|
l="$$s$$(echo "$$longopt" | sed -e "s/,/,$${s}/g")"; \
|
||||||
ll="$$(grep -E -m 1 "^LONG_OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/LONG_OPTIONS=['\"]?//" -e "s/['\"]?$$//" -e "s/,/,$${s}/g")"; \
|
ll="$$(grep -E -m 1 "^LONG_OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/LONG_OPTIONS=['\"]?//" -e "s/['\"]?$$//" -e "s/,/,$${s}/g")"; \
|
||||||
if [[ -n $$ll ]]; then l="$${l},$${s}$${ll}"; fi; \
|
if [[ -n $$ll ]]; then l="$${l},$${s}$${ll}"; fi; \
|
||||||
@@ -49,6 +50,7 @@ embedded: clean
|
|||||||
echo "$$content" >> "$(BUILD_DIR)/tmp"; \
|
echo "$$content" >> "$(BUILD_DIR)/tmp"; \
|
||||||
s="$$(grep -E -m 1 "^OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/OPTIONS=['\"]?//" -e "s/['\"]?$$//")"; \
|
s="$$(grep -E -m 1 "^OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/OPTIONS=['\"]?//" -e "s/['\"]?$$//")"; \
|
||||||
short="$${s}$${short}"; \
|
short="$${s}$${short}"; \
|
||||||
|
s="$$(echo "$$s" | sed -e "s/[:]*$$//")"; \
|
||||||
l="$$s$$(echo "$$longopt" | sed -e "s/,/,$${s}/g")"; \
|
l="$$s$$(echo "$$longopt" | sed -e "s/,/,$${s}/g")"; \
|
||||||
ll="$$(grep -E -m 1 "^LONG_OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/LONG_OPTIONS=['\"]?//" -e "s/['\"]?$$//" -e "s/,/,$${s}/g")"; \
|
ll="$$(grep -E -m 1 "^LONG_OPTIONS=['\"]?.*['\"]?" "$$file" | sed -Ee "s/LONG_OPTIONS=['\"]?//" -e "s/['\"]?$$//" -e "s/,/,$${s}/g")"; \
|
||||||
if [[ -n $$ll ]]; then l="$${l},$${s}$${ll}"; fi; \
|
if [[ -n $$ll ]]; then l="$${l},$${s}$${ll}"; fi; \
|
||||||
|
@@ -43,8 +43,8 @@ if [[ -n $ICON ]]; then
|
|||||||
else
|
else
|
||||||
RESHACKER="$WINEPREFIX/drive_c/Program Files (x86)/Resource Hacker/ResourceHacker.exe"
|
RESHACKER="$WINEPREFIX/drive_c/Program Files (x86)/Resource Hacker/ResourceHacker.exe"
|
||||||
if [[ ! -f $RESHACKER ]]; then
|
if [[ ! -f $RESHACKER ]]; then
|
||||||
curl -L -C - -o "$WINEPREFIX/drive_c/reshacker_setup.exe http://www.angusj.com/resourcehacker/reshacker_setup.exe"
|
curl -L -C - -o "$WINEPREFIX/drive_c/reshacker_setup.exe" "http://www.angusj.com/resourcehacker/reshacker_setup.exe"
|
||||||
WINEPREFIX="$WINEPREFIX" wine "$WINEPREFIX/drive_c/reshacker_setup.exe"
|
WINEPREFIX="$WINEPREFIX" wine "$WINEPREFIX/drive_c/reshacker_setup.exe" 2>&1 /dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -82,8 +82,8 @@ if [[ $INSTALLER == true ]]; then
|
|||||||
|
|
||||||
INNOSETUP="$WINEPREFIX/drive_c/Program Files (x86)/Inno Setup 5/ISCC.exe"
|
INNOSETUP="$WINEPREFIX/drive_c/Program Files (x86)/Inno Setup 5/ISCC.exe"
|
||||||
if [[ ! -f $INNOSETUP ]]; then
|
if [[ ! -f $INNOSETUP ]]; then
|
||||||
curl -L -C - -o "$WINEPREFIX/drive_c/is-unicode.exe http://www.jrsoftware.org/download.php/is-unicode.exe"
|
curl -L -C - -o "$WINEPREFIX/drive_c/is-unicode.exe" "http://www.jrsoftware.org/download.php/is-unicode.exe"
|
||||||
WINEPREFIX="$WINEPREFIX" wine "$WINEPREFIX/drive_c/is-unicode.exe"
|
WINEPREFIX="$WINEPREFIX" wine "$WINEPREFIX/drive_c/is-unicode.exe" 2>&1 /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Inno Setup
|
# Inno Setup
|
||||||
@@ -175,9 +175,9 @@ if [[ $X32 == true ]]; then
|
|||||||
|
|
||||||
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" ]]; then
|
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" ]]; then
|
||||||
if compare_version "$LOVE_VERSION" '>=' '0.9.0'; then
|
if compare_version "$LOVE_VERSION" '>=' '0.9.0'; then
|
||||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win32.zip
|
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win32.zip"
|
||||||
else
|
else
|
||||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win-x86.zip
|
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win-x86.zip"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ if [[ $X32 == true ]]; then
|
|||||||
|
|
||||||
if [[ -n $ICON ]]; then
|
if [[ -n $ICON ]]; then
|
||||||
WINEPREFIX="$WINEPREFIX" wine "$RESHACKER" \
|
WINEPREFIX="$WINEPREFIX" wine "$RESHACKER" \
|
||||||
-addoverwrite "love-$LOVE_VERSION-win32/love.exe,love-$LOVE_VERSION-win32/love.exe,$ICON,ICONGROUP,MAINICON,0" 2> /dev/null
|
-addoverwrite "love-$LOVE_VERSION-win32/love.exe,love-$LOVE_VERSION-win32/love.exe,$ICON,ICONGROUP,MAINICON,0" 2>&1 /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat love-$LOVE_VERSION-win32/love.exe "$LOVE_FILE" > "love-$LOVE_VERSION-win32/${TITLE}.exe"
|
cat love-$LOVE_VERSION-win32/love.exe "$LOVE_FILE" > "love-$LOVE_VERSION-win32/${TITLE}.exe"
|
||||||
@@ -206,9 +206,9 @@ if [[ $X64 == true ]] && compare_version "$LOVE_VERSION" '>=' '0.8.0'; then
|
|||||||
|
|
||||||
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" ]]; then
|
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" ]]; then
|
||||||
if compare_version "$LOVE_VERSION" '>=' '0.9.0'; then
|
if compare_version "$LOVE_VERSION" '>=' '0.9.0'; then
|
||||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win64.zip
|
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win64.zip"
|
||||||
else
|
else
|
||||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win-x64.zip" https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win-x64.zip
|
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win-x64.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win-x64.zip"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -216,7 +216,7 @@ if [[ $X64 == true ]] && compare_version "$LOVE_VERSION" '>=' '0.8.0'; then
|
|||||||
|
|
||||||
if [[ -n $ICON ]]; then
|
if [[ -n $ICON ]]; then
|
||||||
WINEPREFIX="$WINEPREFIX" wine "$RESHACKER" \
|
WINEPREFIX="$WINEPREFIX" wine "$RESHACKER" \
|
||||||
-addoverwrite "love-$LOVE_VERSION-win64/love.exe,love-$LOVE_VERSION-win64/love.exe,$ICON,ICONGROUP,MAINICON,0" 2> /dev/null
|
-addoverwrite "love-$LOVE_VERSION-win64/love.exe,love-$LOVE_VERSION-win64/love.exe,$ICON,ICONGROUP,MAINICON,0" 2>&1 /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat love-$LOVE_VERSION-win64/love.exe "$LOVE_FILE" > "love-$LOVE_VERSION-win64/${TITLE}.exe"
|
cat love-$LOVE_VERSION-win64/love.exe "$LOVE_FILE" > "love-$LOVE_VERSION-win64/${TITLE}.exe"
|
||||||
|
Reference in New Issue
Block a user