“Hello World”

Prerequisites

Quark requires ImageMagick utility to be installed on the machine where you run Quark.  ImageMagick is used to generate icons from SVG files.

  • Go to ImageMagick site , download and install it from there;
  • Check installation by running in terminal: magick -version

1. Download and unpack Sciter SDK

Download Sciter SDK from:

and unpack the zip in some folder (while it is not strongly required, I suggest to install it on path that do not contain white spaces).

You can do that on your Windows, MacOS or Linux machine.

2. Create project folder

Create project folder somewhere on your machine (let’s say D:/quark/hello-world ) with two subfolders:

  • /hello-world
    • /bin – output binaries
    • /src – input sources

Copy into /hello-world/src two files from GitHub “Hello World” sample folder

  • /hello-world
    • /src
        • /globe.svg – window icon
        • /index.htm – content of main window

3. Run Quark from Sciter SDK

While Quark can be compiled by itself as a, well, Quark application, we will use the Quark in it’s “primordial” form:

Run on Windows:

cd {sciter sdk}/bin.quark/windows/
quark-start.bat

on Linux:

cd {sciter sdk}/bin.quark/linux/
./quark-start.sh

on MacOS:

cd {sciter sdk}/bin.quark/macos/
./quark-start.sh

and you should see Quark UI. Press [+] button there to start new project.

Note

After downloading SDK on Linux and MacOS you shall allow executable files to be executable by using chmod utility. Start terminal and type (on MacOS for example):

    cd {sciter sdk path}/bin.osx
    chmod +x scapp

For Mac users: Please check “How to open an app that hasn’t been notarized or is from an unidentified developer” chapter in this Safely open apps on your Mac article.

Fill the fields:

4. Assemble executables

After filling the form and verifying values, press the [Assemble] button.

In less than a second you should have your executables ready in Output folder on your hard drive.

Try to run them and you should see Hello World clock ticking:

And on MacOS:

And on Linux (Linux Mint here):