Skip to content

Commit

Permalink
Configure automated builds using AppVeyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatosilva committed Jun 30, 2016
1 parent 47b3525 commit 75a2248
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions appveyor.yml
@@ -0,0 +1,27 @@
artifacts:
- path: '*.exe'
- path: '*.zip'

build_script:
# Update
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm --sync --refresh --sysupgrade --sysupgrade" # Core
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm --sync --refresh --sysupgrade --sysupgrade" # Rest

# Dependencies
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm --sync --needed mingw-w64-{i686,x86_64}-{libmongoose,gettext,libiconv}"
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm --sync --needed mingw-w64-{i686,x86_64}-{nsis,discount} zip"

# Build
- C:\msys64\usr\bin\bash -lc "source shell mingw32 && cd $(cygpath ${APPVEYOR_BUILD_FOLDER}) && make"
- C:\msys64\usr\bin\bash -lc "source shell mingw64 && cd $(cygpath ${APPVEYOR_BUILD_FOLDER}) && make"

deploy:
provider: GitHub
description: ''
prerelease: false
draft: false
auth_token:
secure: L1oxhKU03o7jGEclmHmCIF8LvBKSfPNF7xmMDOrqRbh5twUVnDcqHGM4mhqx9cTB
on:
branch: master
appveyor_repo_tag: true
2 changes: 1 addition & 1 deletion makesource.sh
Expand Up @@ -15,7 +15,7 @@ package_architecture="${package_architecture%%-*}"
architecture="${package_architecture/x86_64/x64}"
architecture="${architecture/i686/x86}"
app_version=$(grep 'define VERSION' winutils.nsi | awk -F'"' '{ printf $2 }')
zip_file="WinUtils ${app_version} ${architecture} Source.zip"
zip_file="WinUtils-${app_version}-${architecture}-Source.zip"
libraries="libraries/${architecture}"
mkdir -p "${libraries}"

Expand Down
4 changes: 2 additions & 2 deletions winutils.nsi
Expand Up @@ -7,11 +7,11 @@ RequestExecutionLevel admin
InstallDirRegKey HKLM Software\WinUtils Install_Dir
!if ${NSIS_PTR_SIZE} = 8
InstallDir "$PROGRAMFILES64\WinUtils"
OutFile "WinUtils ${VERSION} x64 Setup.exe"
OutFile "WinUtils-${VERSION}-x64-Setup.exe"
!define BITNESS "64-bit"
!else
InstallDir "$PROGRAMFILES32\WinUtils"
OutFile "WinUtils ${VERSION} x86 Setup.exe"
OutFile "WinUtils-${VERSION}-x86-Setup.exe"
!define BITNESS "32-bit"
!endif

Expand Down

0 comments on commit 75a2248

Please sign in to comment.