Skip to content

Commit 9e627e0

Browse files
committed
1.0.78 misc
1 parent c44ba39 commit 9e627e0

6 files changed

Lines changed: 74 additions & 4 deletions

File tree

extras/examples/build.fan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Build : BuildPod
2828
"vcs.name": "Mercurial",
2929
"vcs.uri": "http://hg.fantom.org/fan-1.0/"]
3030
depends = ["sys 1.0"]
31-
resDirs = [`index.fog`, `concurrent/`, `email/`, `fwt/`, `java/`, `sys/`, `util/`, `web/`, `webfwt/`]
31+
resDirs = [`index.fog`, `concurrent/`, `email/`, `fwt/`, `java/`, `js/`, `sys/`, `util/`, `web/`, `webfwt/`]
3232
}
3333

3434
@Target { help = "Verify all examples compile" }

fantom/dockerfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# ================================
2+
# Bootstrap image
3+
# ================================
4+
# This image builds the local Fantom installation using the Fantom Bootstrap process.
5+
#
6+
# It mirrors the Bootstrap.fan script, but does not use it (since we want to use the
7+
# local fantom, not one pulled via git).
8+
9+
FROM openjdk:8-jdk as bootstrap
10+
11+
ARG FAN_DL_URL=https://github.com/fantom-lang/fantom/releases/download
12+
# SWT 4.16 was the last one with JDK 8 support
13+
ARG SWT_DL_URL=https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.16-202006040540/swt-4.16-gtk-linux-x86_64.zip
14+
15+
# These define the `rel` Fantom version.
16+
ARG REL_VERSION=fantom-1.0.77
17+
ARG REL_TAG=v1.0.77
18+
19+
WORKDIR /work
20+
21+
RUN set -e; \
22+
FAN_BIN_URL="$FAN_DL_URL/$REL_TAG/$REL_VERSION.zip" \
23+
# Install curl
24+
&& export DEBIAN_FRONTEND=noninteractive \
25+
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
26+
# Download Fantom
27+
&& curl -fsSL "$FAN_BIN_URL" -o fantom.zip \
28+
&& unzip fantom.zip -d fantom \
29+
&& mv fantom/$REL_VERSION rel \
30+
&& chmod +x rel/bin/* \
31+
&& rm -rf fantom && rm -f fantom.zip \
32+
# Download linux-x86_64 SWT
33+
&& curl -fsSL "$SWT_DL_URL" -o swt.zip \
34+
&& unzip swt.zip -d swt \
35+
&& mv swt/swt.jar ./ \
36+
&& rm -rf swt && rm -f swt.zip
37+
38+
COPY . ./fan/
39+
40+
# Copy SWT into installations
41+
RUN mkdir rel/lib/java/ext/linux-x86_64 \
42+
&& cp swt.jar rel/lib/java/ext/linux-x86_64/ \
43+
&& mkdir fan/lib/java/ext/linux-x86_64 \
44+
&& cp swt.jar fan/lib/java/ext/linux-x86_64/ \
45+
&& rm swt.jar
46+
47+
# Populate config.props with jdkHome (to use jdk, not jre) and devHome
48+
RUN echo -e "\n\njdkHome=/usr/local/openjdk-8/\ndevHome=/work/fan/\n" >> rel/etc/build/config.props \
49+
&& echo -e "\n\njdkHome=/usr/local/openjdk-8/" >> fan/etc/build/config.props
50+
51+
RUN rel/bin/fan fan/src/buildall.fan superclean \
52+
&& rel/bin/fan fan/src/buildboot.fan compile \
53+
&& fan/bin/fan fan/src/buildpods.fan compile
54+
55+
# The /work/fan directory now contains a compiled version of the local Fantom
56+
57+
# ================================
58+
# Run image
59+
# ================================
60+
# This simply copies the new Fantom into a fresh container and sets up the path.
61+
62+
FROM openjdk:8-jdk
63+
64+
COPY --from=bootstrap /work/fan/ /opt/fan/
65+
66+
ENV PATH $PATH:/opt/fan/bin
67+
68+
# Return Fantom's version
69+
CMD ["fan","-version"]

fantom/etc/build/config.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212

1313
// default version used by build scripts
14-
buildVersion=1.0.77
14+
buildVersion=1.0.78
1515

1616
// Must be configured boot build in substitute/release installation
1717
//devHome=/work/fan/

fantom/etc/fanr/config.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Default repository URI to use for all commands.
99
// Override on command line with the -r option
10-
repo=http://eggbox.fantomfactory.org/fanr/
10+
repo=https://eggbox.fantomfactory.org/fanr/
1111

1212
// Number of versions per pod limit for query command.
1313
// Override on command line with the -n option

fantom/etc/sys/units.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ kilojoule, kJ; kg1*m2*sec-2; 1000.0
276276
watt_hour, Wh; kg1*m2*sec-2; 3600.0
277277
kilowatt_hour, kWh; kg1*m2*sec-2; 3600000.0
278278
megawatt_hour, MWh; kg1*m2*sec-2; 3.6E9
279+
gigawatt_hour, GWh; kg1*m2*sec-2; 3.6E12
279280
btu, BTU; kg1*m2*sec-2; 1054.852
280281
kilobtu, kBTU; kg1*m2*sec-2; 1054852.0
281282
megabtu, MBTU, MMBTU; kg1*m2*sec-2; 1.054852E9

fantom/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ See [Setup](https://fantom.org/doc/docTools/Setup) for installation details.
2727
Installers are also available for macOS and Windows:
2828

2929
* macOS: `brew install fantom`
30-
* Windows: [fantom-1.0.74.exe](https://github.com/Fantom-Factory/fantomWindowsInstaller/releases)
30+
* Windows: [installer](https://github.com/Fantom-Factory/fantomWindowsInstaller/releases)
3131

3232
## Community
3333

0 commit comments

Comments
 (0)