Skip to content

Commit

Permalink
Add AppVeyor manifest
Browse files Browse the repository at this point in the history
Update LICENSE and set default version to 1.0.0
  • Loading branch information
julianxhokaxhiu committed May 20, 2020
1 parent 2c4e26a commit 4bb04d5
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 2 deletions.
82 changes: 82 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -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!
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0</string>
<string>1.0.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSMainNibFile</key>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4bb04d5

Please sign in to comment.