GithubHelp home page GithubHelp logo

dottylatest's Introduction

DottyLatest

Windows 10+, 64 bit only
(Has a rudimentary Linux support)

A Java runtime is required.
SBT if using Scala.

Status

Execution (as an admin) Internal command used Status
dottylatest.exe java -cp "dottylatest.jar;lib\*" de.jvr.dottylatest.Dottylatest ok *1)
dottylatest_Java.lnk *2) java -cp "dottylatest.jar;lib\*" de.jvr.dottylatest.Dottylatest ok
dottylatest_Scala.lnk *2) scala -cp dottylatest.jar de.jvr.dottylatest.Dottylatest fails

*1) Using Loader, the internal command used is defined by the content of "loader.ini" (default setup)
Uses internally: java -cp ... process.
Is very slow!
Cannot use internally: scala -cp ... because process does not inherit admin rights.

*2) *.lnk just calls *.bat but forces admin-rights

Description

This simple tool extracts the entry with the latest date from the
dotty nightly-build download-website
and sets the environment-variable "DOTTYLATEST" accordingly.

This environment-variable can be referenced in any "build.sbt"-file with:

ThisBuild / scalaVersion := sys.env.get("DOTTYLATEST").getOrElse("3.4.1"),  

or

inThisBuild(
	List(
		scalaVersion := sys.env.get("DOTTYLATEST").getOrElse("3.4.1")
	)
)

Download:

Portable, run from any directory, but running from a subdirectory of the windows programm-directories
(C:\Program Files, C:\Program Files (x86) etc.)
requires admin-rights and is not recommended!

Via Updater:

Download Updater 64 bit

Virusscan look below.

(Updater virusscan: take a look at the Updater repository)

Answer "Start / restart now" with "NO",
because "Dottylatest" must be run as an administrator,
it can not start from Updater!

Usage

Run as an admin: "dottylatest_Java.bat"
or
Run as an admin: "dottylatest_Scala.bat" (currently not usable) or
Run as an admin: "dottylatest.exe" (Slow, be patient...)

Using loader (Loader Github page):
The dottylatest_loader is configured via the file "loader.ini".
"showresult=1" must be set, because dottylatest is a console app, nothing would be displayed otherwise!
The display timeout "showresulttime=3000" (millisceonds, default is 3000) can be set there too.
The Java runtime information is displayed too, like every console app does!

Asks for admin rights:
Create a shortcut to the file "dottylatest.exe", make the shortcut runnable by admin only!
The shortcut dottylatest_loader.lnk can be attached to the taskbar!
(Yes, it's so slow ...)

Linux/WSL: use "dottylatest_Java.sh" (chmod a+x ...)

Latest changes:

Version (>=) Change
0.050 -> 3.4.1 as default
0.048 -> 3.3.3 as default
0.047 Using the clipboard (loader changed) to catch app messages which is much faster
0.046 -> 3.3.0 as default
0.040 -> 3.2.2 as default
0.032 Executable renamed "dottylatest_loader.exe" -> "dottylatest.exe", new Updater version
0.031 Linux: writing export-command to file "/etc/profile.d/dottylatest.sh"
0.030 Linux: writing export-command to file "dottylatest.txt"
0.025 Adding a timeout wrapper
0.021 Code changed to Dotty (Scala 3)
0.020 64 bit version only
0.018 Env name changed to: dottylatest -> DOTTYLATEST
0.017 Extracting actual version via the date in the file-name
0.016 Not using of a batch-file anymore

TODO:

TODO Done in
loader integration 0.020
updater integration 0.019
check if operations fail 0.018

Run with SBT

(As admin)
runSBT.lnk

Why admin?

Uses the Powerscript command setX /m
to set the variable "dottylatest" in the system environment HKLM,
which must be run as an admin!

File format:

All files are UTF-8 (no BOM)

Libraries

The "lib"-subdirectory contains the Scala libraries needed to run Scala apps with the Java runtime. Use Updater to download them during install from:
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.13/scala-library-2.13.13.jar
https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.1/scala3-library_3-3.4.1.jar

Remarks

The *.default-files are used by the Updater.

License: MIT, -> MIT_License.txt

Copyright (c) 2021 J. v.Roos

Virusscan of support files

Virusscan of updater*.exe -> Updater project
Virusscan of loader*.exe -> Loader project

Virusscan at Virustotal, dottylatest.exe file, Check here
Virusscan at Virustotal, dottylatest.jar file, Check here
Use [CTRL] + Click to open in a new window!

dottylatest's People

Contributors

jvr-ks avatar

Watchers

 avatar  avatar

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.