Appveyor GitHub release (#139)

This commit is contained in:
davide-romanini 2019-09-24 23:36:08 +01:00 committed by GitHub
parent 562a659195
commit 5416bb15c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 23 deletions

View File

@ -1,8 +1,9 @@
VERSION_STR := $(shell python -c 'import comictaggerlib.ctversion; print( comictaggerlib.ctversion.version)')
ifeq ($(OS),Windows_NT)
OS_VERSION=win-$(PROCESSOR_ARCHITECTURE)
APP_NAME=comictagger.exe
FINAL_NAME=ComicTagger-$(VERSION_STR).exe
FINAL_NAME=ComicTagger-$(VERSION_STR)-$(OS_VERSION).exe
else ifeq ($(shell uname -s),Darwin)
OS_VERSION=osx-$(shell defaults read loginwindow SystemVersionStampAsString)-$(shell uname -m)
APP_NAME=ComicTagger.app

View File

@ -2,5 +2,17 @@ version: 1.0.{build}
build_script:
- cmd: powershell -exec bypass -File windows\fullbuild.ps1
artifacts:
- path: dist\*.exe
name: ComicTagger
- path: dist\*.zip
name: ComicTagger
deploy:
description: New Windows Release
provider: GitHub
auth_token:
secure: GftVXNVTfnfWxlCIWNsufQjgrLqGPbrhK7bddzZ+6onYbbx6vEKWku0QMZjcxq/D
draft: true
prerelease: false
artifact: ComicTagger
on:
branch: master
APPVEYOR_REPO_TAG: true

View File

@ -1,5 +0,0 @@
# to be run inside comictagger folder
# installs conda and pip dependencies
activate comictagger
conda install -y pyqt=4
pip install -r .\requirements.txt

View File

@ -1,3 +0,0 @@
$env:PATH+=";C:\ProgramData\Miniconda2\Scripts;C:\ProgramData\Miniconda2"
$env:PATH+=";C:\tools\mingw64\bin"
Set-Alias make mingw32-make.exe -scope Global

View File

@ -1,5 +1,5 @@
# Script to be run inside appveyor for a full build
choco install -y mingw
choco install -y mingw zip
refreshenv
$env:PATH="C:\Python36-x64;$env:path"
python -m venv venv

View File

@ -1,11 +0,0 @@
# This script should be run into an admin PowerShell to install all required
# packages needed for building comictagger on windows
#
# NOTE: this script has not been fully tested on a fresh windows VM.
#
# install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y git mingw miniconda
$env:PATH+=";C:\ProgramData\Miniconda2\Scripts;C:\ProgramData\Miniconda2"
$env:PATH+=";C:\tools\mingw64\bin"
conda create -y --name comictagger python=2