Commit 1b38ec2
Drop snap build scripts
Changed files (3)
Diff
deleted file mode 100755@@ -1,37 +0,0 @@-#!/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)-deleted file mode 100755@@ -1,27 +0,0 @@-#!/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 snapdeleted file mode 100644@@ -1,26 +0,0 @@-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