init:
  - ps: Update-AppveyorBuild -Version "$(Get-Date -Format "yyyy-MM-dd-HHmm")"

clone_folder: c:\lgt3git
shallow_clone: true

skip_tags: true

branches:
  only:
    - master

install:
  # Add Inno Setup to PATH so the ISCC command is found
  - set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

build_script:
  - iscc c:\lgt3git\scripts\windows\logtalk.iss /DPWD=%CD% /OOutput /F"logtalk-installer"

after_build:
  - cd Output
  - copy /y logtalk-installer.exe logtalk-%APPVEYOR_BUILD_VERSION%.exe
  - appveyor PushArtifact logtalk-%APPVEYOR_BUILD_VERSION%.exe
