From 66cd2de2d9bb2798fdb26f88758135adf7f235d1 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Sat, 8 Jul 2017 11:33:17 +0200 Subject: [PATCH] Add a portable version to Windows --- AppVeyor/appveyor.yml | 2 ++ AppVeyor/make_installer.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AppVeyor/appveyor.yml b/AppVeyor/appveyor.yml index 5f2dce3..ed921b9 100644 --- a/AppVeyor/appveyor.yml +++ b/AppVeyor/appveyor.yml @@ -28,3 +28,5 @@ artifacts: name: Shared link - path: installer.exe name: Installer + - path: portable.zip + name: Portable version diff --git a/AppVeyor/make_installer.sh b/AppVeyor/make_installer.sh index 2f241a9..49b3aca 100644 --- a/AppVeyor/make_installer.sh +++ b/AppVeyor/make_installer.sh @@ -9,13 +9,14 @@ function addFileIn { echo $1 mkdir -p $2 cp $1 $2 + 7z a -tzip $2\\$1 portable.zip echo "Source: \"$2\\$(basename $1)\"; DestDir: \"{app}\\$2\"; Flags: ignoreversion" >> installer.iss } ver=$(cat main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g") cd packages/windows -cp ../../KShare.exe . || exit 1 +cp ../../KShare.exe . || exit 3 sed "s/;VER;/$ver/" installer.iss.pattern.top > installer.iss @@ -40,3 +41,4 @@ addFile /c/Qt/5.9/mingw53_32/bin/LIBGCC_S_DW2-1.DLL cat installer.iss.pattern.bottom >> installer.iss "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer.iss cp Output/setup.exe ../../installer.exe || exit 1 +cp Output/porable.zip ../../ || exit 2