Skip to content

Commit

Permalink
ci: add launcher for appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 2, 2019
1 parent f12b8ad commit 72ee5df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .appveyor/ShapeOut2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Shape-Out 2 launcher"""
from shapeout2.__main__ import main

if __name__ == "__main__":
main()
16 changes: 16 additions & 0 deletions .appveyor/hook-shapeout2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2019, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

# Hook for PyJibe: https://github.com/AFM-analysis/PyJibe
from PyInstaller.utils.hooks import collect_data_files

# Data files
datas = collect_data_files("shapeout2", include_py_files=True)
datas += collect_data_files("shapeout2", subdir="img")

9 changes: 2 additions & 7 deletions .appveyor/shapeout2.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/usr/bin/python
# -*- mode: python -*-
# find correct directory
import codecs
import os
from os.path import abspath, exists, join, dirname, relpath
import platform
Expand All @@ -11,14 +7,13 @@ import warnings
cdir = abspath(".")
sys.path.insert(0, cdir)

if not exists(join(cdir, "shapeou2t")):
if not exists(join(cdir, "shapeout2")):
warnings.warn("Cannot find 'shapeout2'! Please run pyinstaller "+
"from git root folder.")

name = "ShapeOut2"
appdir = os.path.realpath(cdir+"/shapeout2/")
pyinstdir = os.path.realpath(cdir+"/.appveyor/")
script = os.path.join(appdir, name+".py")
script = os.path.join(pyinstdir, name+".py")

# Icon
icofile = os.path.join(pyinstdir,"ShapeOut2.ico")
Expand Down

0 comments on commit 72ee5df

Please sign in to comment.