The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Drop snap build scripts

These changes was commited to the Birdfont repository Tue, 05 Feb 2019 17:11:13 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Tue, 05 Feb 2019 17:11:13 +0000]

Updated Files

scripts/snap.py
scripts/snap.sh
scripts/snapcraft.yaml
diff --git scripts/snap.py(deleted)
--- a/scripts/snap.py +++ /dev/null @@ -1,38 +1,1 @@ - #!/usr/bin/python3 - import version - from optparse import OptionParser - - parser = OptionParser() - parser.add_option('-f', '--free', dest='free', action="store_true", help="generate non-commercial version") - (options, args) = parser.parse_args() - - template = open('./scripts/snapcraft.yaml', 'r') - yaml = template.read(); - - if options.free: - v = version.VERSION + "-free" - else: - v = version.VERSION - - yaml = yaml.replace("VERSION", v) - - make_script = open('./build/snapsource/birdfont/Makefile', 'w+') - make_script.write("#Don't edit, the file is generated by a script\n") - make_script.write("all:\n") - - if options.free: - make_script.write ("\t./configure --valac-flags=\"-D FREE\"\n") - else: - make_script.write ("\t./configure\n") - - make_script.write("\t./build.py\n") - make_script.write(""" - - install: - ./install.py -d $(DESTDIR) - """) - - build_script = open('./build/snapcraft.yaml', 'w+') - build_script.write(yaml) -
diff --git scripts/snap.sh(deleted)
--- a/scripts/snap.sh +++ /dev/null @@ -1,28 +1,1 @@ - #!/bin/sh - - if ! git diff --exit-code > /dev/null; then - echo "Uncommitted changes, commit before creating the release." - exit 1 - fi - - SOURCE_DIR="$(pwd)" - - rm -rf $SOURCE_DIR/build/snapsource - mkdir -p $SOURCE_DIR/build/snapsource && \ - cd $SOURCE_DIR/build/snapsource && \ - git clone --depth=1 file:///$SOURCE_DIR birdfont && \ - cd $SOURCE_DIR/build/snapsource/birdfont && \ - python3 ./scripts/complete_translations.py -t 93 -i && \ - cd .. && \ - cd .. && \ - mkdir -p setup/gui && \ - cp ../resources/linux/256x256/birdfont.png setup/gui/icon.png && \ - cd .. && \ - ./scripts/snap.py --free && \ - cd build && \ - snapcraft snap && \ - cd .. && \ - ./scripts/snap.py && \ - cd build && \ - snapcraft snap
diff --git scripts/snapcraft.yaml(deleted)
--- a/scripts/snapcraft.yaml +++ /dev/null @@ -1,27 +1,1 @@ - name: birdfont - version: VERSION - summary: Font editor - description: A font edior which can create TTF, EOT and SVG fonts - confinement: strict - - build-packages: [valac, python3, libglib2.0-dev, libgtk-3-dev, - libwebkit2gtk-3.0-dev, libgee-0.8-dev, libnotify-dev, libsqlite3-dev, - libxmlbird-dev, python-pkg-resources] - - apps: - run: - command: birdfont - plugs: [home, gsettings, x11, unity7] - - parts: - birdfont: - plugin: make - source: snapsource/birdfont - stage-packages: - - libglib2.0-0 - - libwebkit2gtk-3.0-25 - - libgee-0.8-2 - - libnotify4 - - libsqlite3-0 - - libxmlbird1