forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WinSparkle is used to auto update MuseScore on Windows. Add basic API calls to make it work. Add winsparkle.dll and includes. Generate appCast.xml and put to S3 * don't build winsparkle routines with local build * fix interactions with global checkForUpdates option * Mac now invalidates both Win and Mac appcast files * fix scriptrecorder compilation + fix generating appCast for stable version * Fix packaging WinSparkle * change exe file name to MuseScore3.exe * generate package GUID automatically to avoid installation collisions * Use embedded update checker for UNSTABLE Windows builds * comment WinSparkle appcast.xml deploy for unstable builds
- Loading branch information
1 parent
6337218
commit 55043ec
Showing
20 changed files
with
352 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
find_path(WINSPARKLE_INCLUDE_DIR winsparkle.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include/winsparkle;) | ||
|
||
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib") | ||
|
||
find_library(WINSPARKLE_LIBRARY NAMES winsparkle PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH) | ||
|
||
if (MINGW) | ||
set(WINSPARKLE_INCLUDE_DIR "") | ||
set(WINSPARKLE_LIBRARY "") | ||
endif(MINGW) | ||
|
||
message(STATUS ${WINSPARKLE_LIBRARY}) | ||
|
||
if (WINSPARKLE_INCLUDE_DIR AND WINSPARKLE_LIBRARY) | ||
set(WINSPARKLE_FOUND TRUE) | ||
endif (WINSPARKLE_INCLUDE_DIR AND WINSPARKLE_LIBRARY) | ||
|
||
if (WINSPARKLE_FOUND) | ||
message (STATUS "Found WinSparkle: ${WINSPARKLE_LIBRARY}") | ||
else (WINSPARKLE_FOUND) | ||
message (FATAL_ERROR "Could not find: WinSparkle") | ||
endif (WINSPARKLE_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# $1 - artifact name | ||
# $2 - artifact ftp path | ||
# $3 - MuseScore version | ||
# $4 - Revision hash | ||
|
||
export MSCORE_RELEASE_CHANNEL=$(grep '^[[:blank:]]*set *( *MSCORE_RELEASE_CHANNEL' CMakeLists.txt | awk -F \" '{print $2}') | ||
RSS_DATE="$(LANG=C date +'%a, %d %b %Y %H:%M:%S %z')" | ||
FILESIZE="$(wc -c $1 | awk '{print $1}')" | ||
APPCAST_URL="https://sparkle.musescore.org/$MSCORE_RELEASE_CHANNEL/3/win/appcast.xml" | ||
GIT_LOG=$(C:/MuseScore/build/travis/job_macos/generateGitLog.sh) | ||
|
||
echo ${MSCORE_RELEASE_CHANNEL} >> MSCORE_RELEASE_CHANNEL.txt | ||
|
||
#use dummy values for now | ||
echo "<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" version=\"2.0\"> | ||
<channel> | ||
<title>MuseScore development channel</title> | ||
<link> | ||
${APPCAST_URL} | ||
</link> | ||
<description>Most recent changes with links to updates.</description> | ||
<language>en</language> | ||
<item> | ||
<title>MuseScore $3 $4</title> | ||
<description> | ||
<![CDATA[ | ||
${GIT_LOG} | ||
]]> | ||
</description> | ||
<pubDate>${RSS_DATE}</pubDate> | ||
<enclosure url=\"$2\" sparkle:version=\"$3\" length=\"${FILESIZE}\" type=\"application/octet-stream\"/> | ||
</item> | ||
</channel> | ||
</rss>" >> appcast.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ then | |
else | ||
LONG_NAME=MuseScore | ||
LONGER_NAME="MuseScore 3" | ||
VERSION=3.0 | ||
VERSION=3.0.0 | ||
fi | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.