diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/build-distribution-archives | 10 | ||||
| -rwxr-xr-x | bin/build-python | 5 | ||||
| -rwxr-xr-x | bin/generate-version-file | 10 | ||||
| -rwxr-xr-x | bin/inkstitch-fonts-gettext | 8 | ||||
| -rwxr-xr-x | bin/pyembroidery-gettext | 4 |
5 files changed, 22 insertions, 15 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 6e11818d..6402122b 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -4,12 +4,14 @@ VERSION="$(echo ${GITHUB_REF} | sed -e 's|refs/heads/||' -e 's|refs/tags/||' -e OS="${BUILD:-$(uname)}" ARCH="$(uname -m)" -cp -a images/examples palettes symbols fonts dist/inkstitch -cp -a icons locales print dist/inkstitch/bin - if [ "$BUILD" = "osx" ]; then - cp -a electron/build/mac dist/inkstitch/electron + cp -a images/examples palettes symbols fonts LICENSE VERSION dist/inkstitch.app/Contents + cp -a icons locales print dist/inkstitch.app/Contents/MacOS + cp -a electron/build/mac dist/inkstitch.app/Contents/electron + rm -rf dist/inkstitch/ else + cp -a images/examples palettes symbols fonts LICENSE VERSION dist/inkstitch + cp -a icons locales print dist/inkstitch/bin cp -a electron/build/*-unpacked dist/inkstitch/electron fi diff --git a/bin/build-python b/bin/build-python index 0dd3e0a0..88e166ae 100755 --- a/bin/build-python +++ b/bin/build-python @@ -52,8 +52,3 @@ shopt -s dotglob mkdir dist/bin mv dist/inkstitch/* dist/bin mv dist/bin dist/inkstitch - -# on Mac, pyinstaller creates a .app version as well, but we don't need that -if [ "$BUILD" = "osx" ]; then - rm -rf dist/inkstitch.app/ -fi diff --git a/bin/generate-version-file b/bin/generate-version-file new file mode 100755 index 00000000..36c70944 --- /dev/null +++ b/bin/generate-version-file @@ -0,0 +1,10 @@ +#!/bin/bash + +VERSION="${GITHUB_REF##*/}" +OS="${BUILD:-$(uname)}" + +if [[ "$VERSION" == "" ]]; then + VERSION="Manual Install" +fi + +echo "${VERSION} (${OS})" > VERSION diff --git a/bin/inkstitch-fonts-gettext b/bin/inkstitch-fonts-gettext index 8b802fee..24fb9fdf 100755 --- a/bin/inkstitch-fonts-gettext +++ b/bin/inkstitch-fonts-gettext @@ -12,8 +12,8 @@ for font in sorted(os.listdir(fonts_dir)): with open(os.path.join(fonts_dir, font, "font.json")) as font_json: font_metadata = json.load(font_json) - print "# L10N name of font in fonts/%s" % font - print "_(%s)" % repr(font_metadata.get("name", "")) + print("# L10N name of font in fonts/%s" % font) + print("_(%s)" % repr(font_metadata.get("name", ""))) - print "# L10N description of font in fonts/%s" % font - print "_(%s)" % repr(font_metadata.get("description", "")) + print("# L10N description of font in fonts/%s" % font) + print("_(%s)" % repr(font_metadata.get("description", ""))) diff --git a/bin/pyembroidery-gettext b/bin/pyembroidery-gettext index ac9bd1ab..f4e844b9 100755 --- a/bin/pyembroidery-gettext +++ b/bin/pyembroidery-gettext @@ -6,5 +6,5 @@ import pyembroidery # generate fake python code containing the descriptions of pyembroidery formats # as gettext calls so that pybabel will extract them into messages.po for format in pyembroidery.supported_formats(): - print "# L10N description for pyembroidery file format: %s" % format['extension'] - print "_(%s)" % repr(format['description']) + print("# L10N description for pyembroidery file format: %s" % format['extension']) + print("_(%s)" % repr(format['description'])) |
