Giter Club home page Giter Club logo

Comments (12)

behdad avatar behdad commented on May 19, 2024

Donno. Any suggestions?

from region-flags.

nlwillia avatar nlwillia commented on May 19, 2024

Including region-flags as a submodule still doesn't work on Windows because its png folder has symlinks (BL.png, BQ.png, BV.png, CP.png, DG.png, EA.png, HM.png, MF.png, SJ.png, TF.png, UM.png) which generates Warning: Command failed: identify.exe: improper image header 'region-flags/png/BL.png' @ error/png.c/ReadPNGImage/3921.. Copying the target country's file over the link gets past that error, but then the identify command (identify -verbose src/img/flags/@2x/*.png with ImageMagick 6.9.2-0 Q16 x64 2015-08-15) exits with 1...which is odd because the same command exits 0 when invoked directly. Building the images isn't a concern for me right now, but FYI.

from region-flags.

behdad avatar behdad commented on May 19, 2024

I need suggestions as to how to proceed. @shervinafshar, can you think of any?

from region-flags.

jackocnr avatar jackocnr commented on May 19, 2024

Can't you just duplicate the files instead of symlinking them?

from region-flags.

behdad avatar behdad commented on May 19, 2024

We definitely can. Does "ln" fail in such situations? We can try this patch:

diff --git a/make-aliases.sh b/make-aliases.sh
index dab602a..d800c1f 100755
--- a/make-aliases.sh
+++ b/make-aliases.sh
@@ -11,7 +11,7 @@ while read from to; do
                        echo "ERROR: $f exist; skipping"
                        continue
                fi
-               ln -s "$to.$dir" "$f"
+               ln -s "$to.$dir" "$f" || cp "$dir/$to.$dir" "$f"

        done
 done < data/ALIASES

does that work for you?

from region-flags.

jackocnr avatar jackocnr commented on May 19, 2024

No it's the symlinks that already exist in the generated files e.g. png/BL.png

from region-flags.

jackocnr avatar jackocnr commented on May 19, 2024

Amazing thank you! Would you consider doing a release? Makes it easier to pull into other projects.

from region-flags.

behdad avatar behdad commented on May 19, 2024

Make a 1.0 tag / release.

from region-flags.

jackocnr avatar jackocnr commented on May 19, 2024

Thank you! Unfortunately I've just noticed the new commit is in the gh-pages branch instead of master!

from region-flags.

behdad avatar behdad commented on May 19, 2024

I have had intended to delete the master branch before. Done now. We only have a gh-pages branch now.

from region-flags.

jackocnr avatar jackocnr commented on May 19, 2024

Ok thanks! One last thing: for this to work with Bower, you need to use Semantic Versioning, which means the release tag needs to be called 1.0.0 - is that possible?

from region-flags.

behdad avatar behdad commented on May 19, 2024

Ugh. Done.

from region-flags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.