summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandros Theodotou <alex@zrythm.org>2019-06-15 15:12:36 +0100
committerAlexandros Theodotou <alex@zrythm.org>2019-06-15 15:12:36 +0100
commitad4148729993a4b7d2efea8f8b071df960f4a612 (patch)
tree1c02515f55b2784387791002ca10addeaae7d67d
parentbba7b7bfe4a10dc26acab3d64430769bd52625c9 (diff)
downloadzrythm-ad4148729993a4b7d2efea8f8b071df960f4a612.zip
zrythm-ad4148729993a4b7d2efea8f8b071df960f4a612.tar.gz
zrythm-ad4148729993a4b7d2efea8f8b071df960f4a612.tar.bz2
remove windoze crap
-rw-r--r--.gitlab-ci.yml11
-rw-r--r--CHANGELOG.md7
-rw-r--r--THANKS26
-rw-r--r--THIRDPARTY_LICENSE (renamed from data/THIRDPARTY_LICENSE)0
-rw-r--r--TRANSLATORS1
-rwxr-xr-xdata/dlls/libpixman-1-0.dllbin678276 -> 0 bytes
-rw-r--r--scripts/nsis/FileAssociation.nsh190
-rwxr-xr-xscripts/package_win.sh416
-rw-r--r--scripts/update-config-files.sh12
9 files changed, 21 insertions, 642 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c872d8b..e09faa5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,14 +38,3 @@ test_gcc_meson:
- "_build/${CI_JOB_NAME}-report.xml"
- "_build/meson-logs/coveragereport/index.html"
coverage: '/^lines: (\d+(?:\.\d+)?%)/'
-
-package_win_64:
- stage: package
- image: "alextee12/arch-yaourt"
- script:
- - x86_64-w64-mingw32-meson _build
- - ninja -C _build && scripts/package_win.sh /usr/x86_64-w64-mingw32/ $CI_COMMIT_TAG . _win
- artifacts:
- paths:
- - build/win/Install_$CI_COMMIT_TAG.exe
- expire_in: 1 week
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8fb79d3..633c7f8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.
+## [0.5.074] - 2019-06-14
+- Add Chord and Scale objects in the arranger
+- Add Chord and Scale selector popups
+- Add highlighting in the Piano Roll based on current Chord/Scale
+- Create flatpak (WIP)
+- Fix minor Timeline bugs
+
## [0.5.056] - 2019-06-10
- Fix some missing icons
- Update Japanese and French translations (thanks sub26nico and trebmuh)
diff --git a/THANKS b/THANKS
index 3c07588..ae68898 100644
--- a/THANKS
+++ b/THANKS
@@ -1,14 +1,14 @@
-# This is a list of contributors who did not write legally
-# (for copyright purposes) significant amounts of code but
-# should be thanked anyway for their contributions and support
+Thanks:
-* Daniel Peterson
- * Minor fixes
-* Yustin
- * GSource fixes
- * Help with optimization
-* Adam Kosmin
- * UI ideas
- * Financial contribution
-* bill-auger
- * Coming up with the Zrythm tagline
+ * Daniel Peterson
+ * Minor fixes
+ * Yustin
+ * Help with GSource-related fixes
+ * Help with optimization
+ * Adam Kosmin
+ * UI ideas
+ * Financial contribution
+ * bill-auger
+ * Coming up with the Zrythm tagline
+ * Yuri
+ * FreeBSD packager
diff --git a/data/THIRDPARTY_LICENSE b/THIRDPARTY_LICENSE
index fea894b..fea894b 100644
--- a/data/THIRDPARTY_LICENSE
+++ b/THIRDPARTY_LICENSE
diff --git a/TRANSLATORS b/TRANSLATORS
index b23c524..2c3bcd1 100644
--- a/TRANSLATORS
+++ b/TRANSLATORS
@@ -1,2 +1,3 @@
French:
* Nicolas Faure <sub26nico@laposte.net>
+ * Olivier Humbert <trebmuh@tuxfamily.org>
diff --git a/data/dlls/libpixman-1-0.dll b/data/dlls/libpixman-1-0.dll
deleted file mode 100755
index 7340bad..0000000
--- a/data/dlls/libpixman-1-0.dll
+++ /dev/null
Binary files differ
diff --git a/scripts/nsis/FileAssociation.nsh b/scripts/nsis/FileAssociation.nsh
deleted file mode 100644
index cc2f985..0000000
--- a/scripts/nsis/FileAssociation.nsh
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
-_____________________________________________________________________________
-
- File Association
-_____________________________________________________________________________
-
- Based on code taken from http://nsis.sourceforge.net/File_Association
-
- Usage in script:
- 1. !include "FileAssociation.nsh"
- 2. [Section|Function]
- ${FileAssociationFunction} "Param1" "Param2" "..." $var
- [SectionEnd|FunctionEnd]
-
- FileAssociationFunction=[RegisterExtension|UnRegisterExtension]
-
-_____________________________________________________________________________
-
- ${RegisterExtension} "[executable]" "[extension]" "[description]"
-
-"[executable]" ; executable which opens the file format
- ;
-"[extension]" ; extension, which represents the file format to open
- ;
-"[description]" ; description for the extension. This will be display in Windows Explorer.
- ;
-
-
- ${UnRegisterExtension} "[extension]" "[description]"
-
-"[extension]" ; extension, which represents the file format to open
- ;
-"[description]" ; description for the extension. This will be display in Windows Explorer.
- ;
-
-_____________________________________________________________________________
-
- Macros
-_____________________________________________________________________________
-
- Change log window verbosity (default: 3=no script)
-
- Example:
- !include "FileAssociation.nsh"
- !insertmacro RegisterExtension
- ${FileAssociation_VERBOSE} 4 # all verbosity
- !insertmacro UnRegisterExtension
- ${FileAssociation_VERBOSE} 3 # no script
-*/
-
-
-!ifndef FileAssociation_INCLUDED
-!define FileAssociation_INCLUDED
-
-!include Util.nsh
-
-!verbose push
-!verbose 3
-!ifndef _FileAssociation_VERBOSE
- !define _FileAssociation_VERBOSE 3
-!endif
-!verbose ${_FileAssociation_VERBOSE}
-!define FileAssociation_VERBOSE `!insertmacro FileAssociation_VERBOSE`
-!verbose pop
-
-!macro FileAssociation_VERBOSE _VERBOSE
- !verbose push
- !verbose 3
- !undef _FileAssociation_VERBOSE
- !define _FileAssociation_VERBOSE ${_VERBOSE}
- !verbose pop
-!macroend
-
-
-
-!macro RegisterExtensionCall _EXECUTABLE _EXTENSION _DESCRIPTION
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
- Push `${_DESCRIPTION}`
- Push `${_EXTENSION}`
- Push `${_EXECUTABLE}`
- ${CallArtificialFunction} RegisterExtension_
- !verbose pop
-!macroend
-
-!macro UnRegisterExtensionCall _EXTENSION _DESCRIPTION
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
- Push `${_EXTENSION}`
- Push `${_DESCRIPTION}`
- ${CallArtificialFunction} UnRegisterExtension_
- !verbose pop
-!macroend
-
-
-
-!define RegisterExtension `!insertmacro RegisterExtensionCall`
-!define un.RegisterExtension `!insertmacro RegisterExtensionCall`
-
-!macro RegisterExtension
-!macroend
-
-!macro un.RegisterExtension
-!macroend
-
-!macro RegisterExtension_
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
-
- Exch $R2 ;exe
- Exch
- Exch $R1 ;ext
- Exch
- Exch 2
- Exch $R0 ;desc
- Exch 2
- Push $0
- Push $1
-
- ReadRegStr $1 HKCR $R1 "" ; read current file association
- StrCmp "$1" "" NoBackup ; is it empty
- StrCmp "$1" "$R0" NoBackup ; is it our own
- WriteRegStr HKCR $R1 "backup_val" "$1" ; backup current value
-NoBackup:
- WriteRegStr HKCR $R1 "" "$R0" ; set our file association
-
- ReadRegStr $0 HKCR $R0 ""
- StrCmp $0 "" 0 Skip
- WriteRegStr HKCR "$R0" "" "$R0"
- WriteRegStr HKCR "$R0\shell" "" "open"
- WriteRegStr HKCR "$R0\DefaultIcon" "" "$R2,0"
-Skip:
- WriteRegStr HKCR "$R0\shell\open\command" "" '"$R2" "%1"'
- WriteRegStr HKCR "$R0\shell\edit" "" "Edit $R0"
- WriteRegStr HKCR "$R0\shell\edit\command" "" '"$R2" "%1"'
-
- Pop $1
- Pop $0
- Pop $R2
- Pop $R1
- Pop $R0
-
- !verbose pop
-!macroend
-
-
-
-!define UnRegisterExtension `!insertmacro UnRegisterExtensionCall`
-!define un.UnRegisterExtension `!insertmacro UnRegisterExtensionCall`
-
-!macro UnRegisterExtension
-!macroend
-
-!macro un.UnRegisterExtension
-!macroend
-
-!macro UnRegisterExtension_
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
-
- Exch $R1 ;desc
- Exch
- Exch $R0 ;ext
- Exch
- Push $0
- Push $1
-
- ReadRegStr $1 HKCR $R0 ""
- StrCmp $1 $R1 0 NoOwn ; only do this if we own it
- ReadRegStr $1 HKCR $R0 "backup_val"
- StrCmp $1 "" 0 Restore ; if backup="" then delete the whole key
- DeleteRegKey HKCR $R0
- Goto NoOwn
-
-Restore:
- WriteRegStr HKCR $R0 "" $1
- DeleteRegValue HKCR $R0 "backup_val"
- DeleteRegKey HKCR $R1 ;Delete key with association name settings
-
-NoOwn:
-
- Pop $1
- Pop $0
- Pop $R1
- Pop $R0
-
- !verbose pop
-!macroend
-
-!endif # !FileAssociation_INCLUDED
diff --git a/scripts/package_win.sh b/scripts/package_win.sh
deleted file mode 100755
index 2957fdb..0000000
--- a/scripts/package_win.sh
+++ /dev/null
@@ -1,416 +0,0 @@
-#! /bin/bash
-
-# Copyright (C) 2019 Alexandros Theodotou <alex at zrythm dot org>
-#
-# This file is part of Zrythm
-#
-# Zrythm is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Zrythm is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
-#
-
-# $1 prefix $2 version $3 src dir $4 build dir
-
-PROGRAM_VERSION="$2"
-
-src_dir=`pwd`
-SRC_DIR=$3
-BUILD_DIR=$4
-PREFIX=$1
-WINDIR=$BUILD_DIR/win
-BINDIR=$WINDIR/bin
-LIBDIR=$WINDIR/lib
-SHAREDIR=$WINDIR/share
-ETCDIR=$WINDIR/etc
-INSTALL_DATA="install -m 644"
-
-mkdir -p $BUILD_DIR/schemas
-install -m 644 $SRC_DIR/data/org.zrythm.gschema.xml \
- $BUILD_DIR/schemas/
-cp $PREFIX/share/glib-2.0/schemas/org.gtk.Settings.* $BUILD_DIR/schemas/
-wine $PREFIX/bin/glib-compile-schemas.exe \
- $BUILD_DIR/schemas
-
-rm -rf $WINDIR
-mkdir -p $BINDIR
-mkdir -p $LIBDIR
-mkdir -p $SHAREDIR
-mkdir -p $ETCDIR
-
-# ******************************
-echo "Copying dlls..."
-DLLS=" \
- libatk-1.0-0.dll \
- libbz2-1.dll \
- libcairo-2.dll \
- libcairo-gobject-2.dll \
- libcroco-0.6-3.dll \
- libdatrie-1.dll \
- libdl.dll \
- libepoxy-0.dll \
- libexpat-1.dll \
- libffi-6.dll \
- libFLAC-8.dll \
- libfontconfig-1.dll \
- libfreetype-6.dll \
- libfribidi-0.dll \
- libgcc_s_seh-1.dll \
- libgdk_pixbuf-2.0-0.dll \
- libgdk-3-0.dll \
- libgio-2.0-0.dll \
- libglib-2.0-0.dll \
- libgmodule-2.0-0.dll \
- libgobject-2.0-0.dll \
- libgraphite2.dll \
- libgthread-2.0-0.dll \
- libgtk-3-0.dll \
- libharfbuzz-0.dll \
- libiconv-2.dll \
- libintl-8.dll \
- libjasper-4.dll \
- libjpeg-8.dll \
- liblzma-5.dll \
- libogg-0.dll \
- libpango-1.0-0.dll \
- libpangocairo-1.0-0.dll \
- libpangoft2-1.0-0.dll \
- libpangowin32-1.0-0.dll \
- libpcre-1.dll \
- libpng16-16.dll \
- libportaudio-2.dll \
- librsvg-2-2.dll \
- libsamplerate-0.dll \
- libsndfile-1.dll \
- libstdc++-6.dll \
- libthai-0.dll \
- libtiff-5.dll \
- libvorbis-0.dll \
- libvorbisenc-2.dll \
- libvorbisfile-3.dll \
- libwinpthread-1.dll \
- libxml2-2.dll \
- lilv-0.dll \
- serd-0.dll \
- sord-0.dll \
- sratom-0.dll \
- zlib1.dll"
-
-for file in $DLLS; do
- echo "copying $file"
- cp $PREFIX/bin/$file $BINDIR/
- cp $PREFIX/bin/$file $BUILD_DIR/
-done
-
-# pixman doesn't work unless the mSYS one is used
-echo "copying libpixman-1-0.dll"
-cp data/dlls/libpixman-1-0.dll $BINDIR/
-cp data/dlls/libpixman-1-0.dll $BUILD_DIR/
-# ******************************
-
-# ******************************
-echo "packaging settings.ini"
-ETC_GTK_DIR="$ETCDIR/gtk-3.0"
-mkdir -p $ETC_GTK_DIR
-cp data/settings.ini $ETC_GTK_DIR/
-# ******************************
-
-# ******************************
-echo "packaging glib schema"
-SCHEMAS_DIR="$SHAREDIR/glib-2.0/schemas"
-mkdir -p "$SCHEMAS_DIR"
-cp "$BUILD_DIR/schemas/gschemas.compiled" \
- "$SCHEMAS_DIR/"
-# ******************************
-
-# ******************************
-echo "packaging Adwaita icons"
-ICONS_DIR="$SHAREDIR/icons"
-mkdir -p "$ICONS_DIR"
-cp -RL "$PREFIX/share/icons/Adwaita" "$ICONS_DIR/"
-
-echo "packaging existing hicolor icons"
-cp -RL "$PREFIX/share/icons/hicolor" "$ICONS_DIR/"
-
-echo "packaging app icon"
-APPICON_DIR1=$ICONS_DIR/hicolor/scalable/apps
-APPICON_DIR2=$ICONS_DIR/hicolor/48x48/apps
-$(eval "$INSTALL_DATA \
- resources/icons/zrythm/zrythm.svg \
- \"$APPICON_DIR1/\"")
-$(eval "$INSTALL_DATA \
- resources/icons/zrythm/zrythm.svg \
- \"$APPICON_DIR2/\"")
-# ******************************
-
-# ******************************
-echo "packaging locales"
-MESSAGES_DIR="$SHAREDIR/locale"
-languages="fr de it es ja"
-for lang in $languages; do
- CUR_DIR="$MESSAGES_DIR/$lang/LC_MESSAGES"
- mkdir -p $CUR_DIR
- $(eval "$INSTALL_DATA \
- po/$lang/zrythm.mo \
- \"$CUR_DIR/\"")
- cp $PREFIX/share/locale/$lang/LC_MESSAGES/gtk30.mo \
- $PREFIX/share/locale/$lang/LC_MESSAGES/gtk30-properties.mo \
- $CUR_DIR/
-done
-# ******************************
-
-# ******************************
-echo "packaging fonts"
-cp -R resources/fonts "$SHAREDIR/"
-# ******************************
-
-# ******************************
-echo "packaging gdk pixbuf loaders"
-PIXBUF_DIR="lib/gdk-pixbuf-2.0/2.10.0"
-mkdir -p "$WINDIR/$PIXBUF_DIR/loaders"
-cp "$PREFIX/$PIXBUF_DIR/loaders/"*.dll \
- "$WINDIR/$PIXBUF_DIR/loaders/"
-cp "$PREFIX/$PIXBUF_DIR/loaders.cache" \
- "$WINDIR/$PIXBUF_DIR/"
-# ******************************
-
-# ******************************
-#echo "packaging immodules"
-#IMMODULES_DIR="lib/gtk-3.0/3.0.0"
-#mkdir -p "$WINDIR/$IMMODULES_DIR/immodules"
-#cp "$PREFIX/$IMMODULES_DIR/immodules/"*.dll \
- #"$WINDIR/$IMMODULES_DIR/immodules/"
-#cat /usr/x86_64-w64-mingw32/lib/gtk-3.0/3.0.0/immodules.cache | sed 's/\".*\/lib/lib/g' | sed 's/\/usr\/.*\/share/share/g' | sed 's/\//\\\\/g' > "$WINDIR/$IMMODULES_DIR/immodules.cache"
-# ******************************
-
-# ******************************
-echo "packaging zrythm.exe"
-cp "$BUILD_DIR/zrythm.exe" "$BINDIR/"
-# ******************************
-
-# ******************************
-echo "packaging licenses"
-cp COPYING "$WINDIR/LICENSE"
-cp data/THIRDPARTY_LICENSE "$WINDIR/"
-# ******************************
-
-# ******************************
-echo "packaging icon"
-cp data/zrythm.ico "$WINDIR/"
-# ******************************
-
-# ******************************
-# original taken from ardour/tools/x-win/package.sh
-# no license header, but ardour itself is GPLv2+
-echo "Preparing Windows Installer"
-cd $WINDIR
-NSISFILE=zrythm.nsis
-PROGRAM_NAME=Zrythm
-PROGRAM_KEY=Zrythm
-major_version=${PROGRAM_VERSION:0:1}
-PRODUCT_ID=${PROGRAM_NAME}
-PRODUCT_EXE=zrythm.exe
-PRODUCT_ICON=zrythm.ico
-OUTFILE="Install_v$PROGRAM_VERSION.exe"
-ZRYTHMDATE=$(date -R)
-STATEFILE_SUFFIX=zpr # project file
-QUICKZIP=1
-
-if [[ $PREFIX == *"x86_64"* ]]; then
- PGF=PROGRAMFILES64
- SFX=
- WARCH=w64
-else
- PGF=PROGRAMFILES
- # TODO we should only add this for 32bit on 64bit windows!
- SFX=" (x86)"
- WARCH=w32
-fi
-
-if test -n "$QUICKZIP" ; then
- cat > $NSISFILE << EOF
-SetCompressor zlib
-EOF
-else
- cat > $NSISFILE << EOF
-SetCompressor /SOLID lzma
-SetCompressorDictSize 32
-EOF
-fi
-
-cat >> $NSISFILE << EOF
-!addincludedir "${src_dir}/scripts/nsis"
-!include MUI2.nsh
-!include FileAssociation.nsh
-!include WinVer.nsh
-
-Name "${PROGRAM_NAME}"
-OutFile "${OUTFILE}"
-RequestExecutionLevel admin
-InstallDir "\$${PGF}\\${PRODUCT_ID}"
-InstallDirRegKey HKLM "Software\\${PRODUCT_NAME}\\${PRODUCT_ID}\\$WARCH" "Install_Dir"
-!define MUI_ICON "${PRODUCT_ICON}"
-
-EOF
-
-cat >> $NSISFILE << EOF
-!define MUI_FINISHPAGE_TITLE "Welcome to Zrythm"
-!define MUI_FINISHPAGE_TEXT "Thank you for installing Zrythm.\$\\r\$\\nIf you would like to join the discussion, Zrythm has a community forum, a bug tracker, an IRC chatroom and a Matrix chatroom.\$\\r\$\\n\$\\r\$\\nPlease visit the website below to find out more."
-!define MUI_FINISHPAGE_LINK "Zrythm website"
-!define MUI_FINISHPAGE_LINK_LOCATION "https://www.zrythm.org/"
-#this would run as admin - see http://forums.winamp.com/showthread.php?t=353366
-#!define MUI_FINISHPAGE_RUN "\$INSTDIR\\bin\\${PRODUCT_EXE}"
-!define MUI_FINISHPAGE_NOREBOOTSUPPORT
-EOF
-
-cat >> $NSISFILE << EOF
-!define MUI_ABORTWARNING
-!insertmacro MUI_PAGE_LICENSE "LICENSE"
-!insertmacro MUI_PAGE_COMPONENTS
-!insertmacro MUI_PAGE_DIRECTORY
-!insertmacro MUI_PAGE_INSTFILES
-!insertmacro MUI_PAGE_FINISH
-!insertmacro MUI_UNPAGE_CONFIRM
-!insertmacro MUI_UNPAGE_INSTFILES
-!insertmacro MUI_LANGUAGE "English"
-
-Section "${PROGRAM_NAME} v${PROGRAM_VERSION} (required)" SecMainProg
- SectionIn RO
- SetOutPath \$INSTDIR
- File /r bin
- File /r LICENSE
- File /r THIRDPARTY_LICENSE
- File /r lib
- File /r share
- File /r etc
- WriteRegStr HKLM "Software\\${PROGRAM_KEY}\\v${major_version}\\$WARCH" "Install_Dir" "\$INSTDIR"
- WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" "DisplayName" "${PROGRAM_NAME}"
- WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" "UninstallString" '"\$INSTDIR\\uninstall.exe"'
- WriteRegDWORD HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" "NoModify" 1
- WriteRegDWORD HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" "NoRepair" 1
- WriteUninstaller "\$INSTDIR\uninstall.exe"
- CreateShortCut "\$INSTDIR\\${PROGRAM_NAME}.lnk" "\$INSTDIR\\bin\\${PRODUCT_EXE}" "" "\$INSTDIR\\bin\\${PRODUCT_EXE}" 0
- \${registerExtension} "\$INSTDIR\\bin\\zrythm" ".${STATEFILE_SUFFIX}" "${PROGRAM_NAME} Session"
-SectionEnd
-
-Section "WASAPI sound driver" SecWASAPI
-SectionEnd
-EOF
-
-cat >> $NSISFILE << EOF
-Section "Start Menu Shortcuts" SecMenu
- SetShellVarContext all
- CreateDirectory "\$SMPROGRAMS\\${PRODUCT_ID}${SFX}"
- CreateShortCut "\$SMPROGRAMS\\${PRODUCT_ID}${SFX}\\${PROGRAM_NAME}.lnk" "\$INSTDIR\\bin\\${PRODUCT_EXE}" "" "\$INSTDIR\\bin\\${PRODUCT_EXE}" 0
-EOF
-
-cat >> $NSISFILE << EOF
- CreateShortCut "\$SMPROGRAMS\\${PRODUCT_ID}${SFX}\\Uninstall.lnk" "\$INSTDIR\\uninstall.exe" "" "\$INSTDIR\\uninstall.exe" 0
-SectionEnd
-LangString DESC_SecMainProg \${LANG_ENGLISH} "${PROGRAM_NAME} v${PROGRAM_VERSION}\$\\r\$\\n${ZRYTHMDATE}"
-LangString DESC_SecWASAPI \${LANG_ENGLISH} "WASAPI Audio Driver\$\\r\$\\nOnly works on Vista or later."
-EOF
-
-cat >> $NSISFILE << EOF
-LangString DESC_SecMenu \${LANG_ENGLISH} "Create Start-Menu Shortcuts (recommended)."
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
-!insertmacro MUI_DESCRIPTION_TEXT \${SecMainProg} \$(DESC_SecMainProg)
-!insertmacro MUI_DESCRIPTION_TEXT \${SecWASAPI} \$(DESC_SecWASAPI)
-EOF
-
-cat >> $NSISFILE << EOF
-!insertmacro MUI_DESCRIPTION_TEXT \${SecMenu} \$(DESC_SecMenu)
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-Section "Uninstall"
- SetShellVarContext all
- DeleteRegKey HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}"
- DeleteRegKey HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}"
- DeleteRegKey HKLM "Software\\${PROGRAM_KEY}\\v${major_version}"
- RMDir /r "\$INSTDIR\\bin"
- RMDir /r "\$INSTDIR\\lib"
- RMDir /r "\$INSTDIR\\share"
- RMDir /r "\$INSTDIR\\etc"
- Delete "\$INSTDIR\\LICENSE"
- Delete "\$INSTDIR\\THIRDPARTY_LICENSE"
- Delete "\$INSTDIR\\uninstall.exe"
- Delete "\$INSTDIR\\${PROGRAM_NAME}.lnk"
- RMDir "\$INSTDIR"
- Delete "\$SMPROGRAMS\\${PRODUCT_ID}${SFX}\\*.*"
- RMDir "\$SMPROGRAMS\\${PRODUCT_ID}${SFX}"
- \${unregisterExtension} ".${STATEFILE_SUFFIX}" "${PROGRAM_NAME} Session"
-SectionEnd
-
-
-Function .onInit
-
- ReadRegStr \$R0 HKLM \
- "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" \
- "UninstallString"
- StrCmp \$R0 "" done
-
- MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
- "${PROGRAM_NAME} is already installed. Click 'OK' to remove the previous version or 'Cancel' to cancel this upgrade." \
- IDOK uninst
- Abort
-
- uninst:
- ClearErrors
- ExecWait '\$R0 _?=\$INSTDIR'
- IfErrors uninstall_error
-
- ReadRegStr \$R1 HKLM \
- "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${PRODUCT_ID}-${WARCH}" \
- "UninstallString"
- StrCmp \$R1 "" 0 done
-
- Delete "\$INSTDIR\\uninstall.exe"
- RMDir "\$INSTDIR"
- goto done
-
- uninstall_error:
-
- MessageBox MB_OK|MB_ICONEXCLAMATION \
- "Uninstaller did not complete successfully. Continue at your own risk..." \
- IDOK done
-
- done:
-
- \${If} \${AtMostWinXP}
- SectionSetFlags \${SecWASAPI} \${SF_RO}
- \${Else}
- SectionSetFlags \${SecWASAPI} 0
- \${EndIf}
-
-FunctionEnd
-
-Function .onInstSuccess
-
- \${If} \${AtMostWinXP}
- goto endportaudio
- \${EndIf}
-
- endportaudio:
-
-FunctionEnd
-EOF
-
-rm -f ${OUTFILE}
-echo " === OutFile: $OUTFILE"
-
-if test -n "$QUICKZIP" ; then
-echo " === Building Windows Installer (fast zip)"
-else
-echo " === Building Windows Installer (lzma compression takes ages)"
-fi
-time makensis -V2 $NSISFILE
-ls -lgGh "$OUTFILE"
-
-cd $src_dir
diff --git a/scripts/update-config-files.sh b/scripts/update-config-files.sh
deleted file mode 100644
index 84850a4..0000000
--- a/scripts/update-config-files.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /bin/sh
-
-# update config.guess and config.sub
-if [ -x "$(command -v wget)" ];
-then
- wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' || true
- wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' || true
-elif [ -x "$(command -v curl)" ];
-then
- curl -o config.gues 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' || true
- curl -o config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' || true
-fi