Skip to content

Commit f4cb9e6

Browse files
committed
Release v0.2.1
1 parent 2968939 commit f4cb9e6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name = "FIGlet"
22
uuid = "3064a664-84fe-4d92-92c7-ed492f3d8fae"
33
authors = ["Dheepak Krishnamurthy"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
7+
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
78
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
89

910
[compat]
1011
julia = "1"
12+
BinaryProvider = "^0"
1113

1214
[extras]
1315
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

deps/build.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using BinaryProvider
2+
using Pkg
3+
4+
tarball_url = "https://github.com/kdheepak/FIGletFonts/archive/v0.5.0.tar.gz"
5+
hash = "39f46c840ba035ba3b52aebf46123e6eda7393a7a18c5e6e02fb68c8cb50a33d"
6+
prefix = Prefix(@__DIR__)
7+
8+
!isdefined(Pkg, :Artifacts) && !isinstalled(tarball_url, hash, prefix=prefix) && install(tarball_url, hash, prefix=prefix)

src/FIGlet.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
module FIGlet
22

3-
using Pkg.Artifacts
43
import Base
54

6-
const FONTSDIR = abspath(normpath(joinpath(artifact"fonts", "FIGletFonts-0.5.0", "fonts")))
5+
using Pkg
6+
if isdefined(Pkg, :Artifacts)
7+
using Pkg.Artifacts
8+
@eval fontsroot = artifact"fonts"
9+
else
10+
fontsroot = normpath(@__DIR__, "..", "deps")
11+
end
12+
13+
const FONTSDIR = abspath(normpath(joinpath(fontsroot, "FIGletFonts-0.5.0", "fonts")))
714
const UNPARSEABLES = [
815
"nvscript.flf",
916
]

0 commit comments

Comments
 (0)