From f6048566ed145fa667fd82a3457736f9238fbdf7 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Mon, 11 Mar 2019 19:25:58 +0100 Subject: [PATCH] buildpy2exe: fix path for resources --- .appveyor.yml | 3 ++- buildPy2exe.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index b2b1fc9..3283b11 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -33,6 +33,7 @@ install: - for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a - python buildPy2exe.py - type nul > syncplay_v%ver%\syncplay.ini + - move Syncplay-%ver%-Setup.exe Syncplay-%ver%-setuptools-Setup.exe # Not a project with an msbuild file, build done at install. build: off @@ -42,7 +43,7 @@ artifacts: type: zip name: Syncplay_$(ver)_setuptools_Portable - - path: Syncplay-$(ver)-Setup.exe + - path: Syncplay-$(ver)-setuptools-Setup.exe name: Syncplay-$(ver)-setuptools-Setup # Push artefact to S3 bucket and list all diff --git a/buildPy2exe.py b/buildPy2exe.py index 6b15779..d9a60d7 100755 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -71,7 +71,7 @@ NSIS_SCRIPT_TEMPLATE = r""" RequestExecutionLevel admin ManifestDPIAware false XPStyle on - Icon resources\icon.ico ;Change DIR + Icon syncplay\resources\icon.ico ;Change DIR SetCompressor /SOLID lzma VIProductVersion "$version.0" @@ -157,7 +157,7 @@ NSIS_SCRIPT_TEMPLATE = r""" LangString ^ClickInstall $${LANG_GERMAN} " " PageEx license - LicenseData resources\license.rtf + LicenseData syncplay\resources\license.rtf PageExEnd Page custom DirectoryCustom DirectoryCustomLeave Page instFiles