From 4bb04d5eafc8249227a51a1a3f749e9ea2b981cf Mon Sep 17 00:00:00 2001 From: Julian Xhokaxhiu Date: Wed, 20 May 2020 23:39:03 +0200 Subject: [PATCH] Add AppVeyor manifest Update LICENSE and set default version to 1.0.0 --- .appveyor.yml | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++ Info.plist | 2 +- LICENSE | 2 +- 3 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..0c37fbc --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,82 @@ +# .appveyor.yml + +# Build version +version: '1.3.0.{build}' + +# Use the latest available toolchain +image: macos + +# fetch repository as zip archive +shallow_clone: true + +# PRs do not increment the build number +pull_requests: + do_not_increment_build_number: true + +# Build configurations +configuration: Release + +# Default environment variables +environment: + _IS_BUILD_CANARY: false + _RELEASE_NAME: iPoPS + _RELEASE_VERSION: v0 + +# Prepare Cpp environment +before_build: + - sh: | + export _APP_VERSION=`echo $APPVEYOR_BUILD_VERSION | cut -d. -f1-3` + if [[ $APPVEYOR_REPO_TAG -eq "true" && ! -z $APPVEYOR_REPO_TAG_NAME ]]; + then + export APPVEYOR_BUILD_VERSION="${_APP_VERSION}.0" + export _RELEASE_VERSION="v${APPVEYOR_BUILD_VERSION}" + else + export _RELEASE_VERSION="Canary" + export APPVEYOR_REPO_TAG_NAME="canary" + export _IS_BUILD_CANARY="true" + fi + +build_script: + - sh: | + agvtool new-marketing-version ${_APP_VERSION} + xcodebuild -project ${_RELEASE_NAME}.xcodeproj -scheme ${_RELEASE_NAME} -configuration $CONFIGURATION -derivedDataPath .dist + +after_build: + - sh: | + npm install --global create-dmg + cp LICENSE .dist/Build/Products/${CONFIGURATION}/license.txt + create-dmg .dist/Build/Products/${CONFIGURATION}/${_RELEASE_NAME}.app .dist/ || true + mv ".dist/${_RELEASE_NAME} ${_APP_VERSION}.dmg" .dist/${_RELEASE_NAME}.dmg + +# Package artifacts +artifacts: + - path: .dist/${_RELEASE_NAME}.dmg + name: ${_RELEASE_NAME}-${_RELEASE_VERSION} + +# Create a GitHub release for every tag +deploy: + # Deploy only when new tags are pushed + - provider: GitHub + tag: ${APPVEYOR_REPO_TAG_NAME} + release: ${_RELEASE_NAME}-${_RELEASE_VERSION} + artifact: ${_RELEASE_NAME}-${_RELEASE_VERSION} + auth_token: + secure: SXUyBqg8+wl9fn3xHV2Br0xDH65EyPAnFwJbwcg94wIesv9osQEefC3zxu9iDTUh + on: + branch: master + _IS_BUILD_CANARY: false + # Deploy on each commit + - provider: GitHub + tag: ${APPVEYOR_REPO_TAG_NAME} + release: ${_RELEASE_NAME}-v${APPVEYOR_BUILD_VERSION} + artifact: ${_RELEASE_NAME}-${_RELEASE_VERSION} + prerelease: true + force_update: true + auth_token: + secure: SXUyBqg8+wl9fn3xHV2Br0xDH65EyPAnFwJbwcg94wIesv9osQEefC3zxu9iDTUh + on: + branch: master + _IS_BUILD_CANARY: true + description: | + This is a canary build. Please be aware it may be prone to crashing and is NOT tested by anyone. + The App is NOT signed. You need to allow it to run in your Gatekeeper settings panel. Use this build AT YOUR OWN RISK! diff --git a/Info.plist b/Info.plist index 805e80a..b7d5fc4 100644 --- a/Info.plist +++ b/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.3.0 + 1.0.0 LSApplicationCategoryType public.app-category.utilities NSMainNibFile diff --git a/LICENSE b/LICENSE index b312740..46b8f65 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013 Julian Xhokaxhiu +Copyright (c) 2020 Julian Xhokaxhiu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in