#version 1

generate
build

# Now compile the content to ensure it's up-to-date
native-execute powershell -Command .\Build\BuildContent.ps1

# Generate and build again (because building the content may have changed our input files)
generate
build
  
# Now do a release build
set build-property Configuration Release
build

if host Windows
  if file-exists C:\Users\build\Documents\protobuild_api_key.txt
    # Also build the level editor
    native-execute powershell -Command .\Build\BuildLevelEditor.ps1

    # Now publish a development build package
    native-execute powershell -Command .\Build\CreatePackage.ps1
  endif
endif