diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 1c296fe8..87212a68 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -6,7 +6,7 @@ on: jobs: upload-release-asset: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -16,6 +16,14 @@ jobs: - name: Build standalone apps run: npm run pkg + - name: Install WiX Toolset + run: | + choco install wixtoolset + - name: Build windows installer + run: | + candle.exe -o dist/ build-win-installer.wxs + light.exe -o dist/heta-compiler-installer.msi dist/build-win-installer.wixobj + - name: Upload Release Asset Win uses: actions/upload-release-asset@v1 env: diff --git a/README.md b/README.md index 8fd938d8..c93706bb 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,29 @@ Heta compiler can be used as the framework for a QSP modeling project of any siz Metelkin, E., (2021). Heta compiler: a software tool for the development of large-scale QSP models and compilation into simulation formats. __Journal of Open Source Software, 6(67), 3708__, [DOI: 10.21105/joss.03708](https://doi.org/10.21105/joss.03708) -## Installation +## Installation in Windows + +[Download heta-installer.msi from release page](https://github.com/hetalang/heta-compiler/releases) and install. + +## Installation in Linux and Macos + +For all users (requires sudo previleges) + +```bash +sudo wget -O /usr/local/bin/heta https://github.com/hetalang/heta-compiler/releases/download/test2/heta-compiler-linux && sudo chmod +x /usr/local/bin/heta +``` + +For single user without sudo previleges + +```bash +mkdir -p ~/bin +wget -O ~/bin/heta https://github.com/hetalang/heta-compiler/releases/download/test2/heta-compiler-linux +chmod +x ~/bin/heta +echo "export PATH=$PATH:~/bin" >> ~/.bashrc +source ~/.bashrc +``` + +## Installation in NodeJS environment [NodeJS](https://nodejs.org/en/) must be installed prior to Heta compiler installation. Currently the recommended version is **NodeJS v16 and newer**, but NodeJS v14 is also supported. diff --git a/build-win-installer.wxs b/build-win-installer.wxs new file mode 100644 index 00000000..de58c1f3 --- /dev/null +++ b/build-win-installer.wxs @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/package.json b/package.json index ca56cdb0..b2c81ecc 100644 --- a/package.json +++ b/package.json @@ -70,9 +70,9 @@ "bin/heta-init.js" ], "targets": [ - "node14-win-x64", - "node14-linux-x64", - "node14-macos-x64" + "node16-win-x64", + "node16-linux-x64", + "node16-macos-x64" ], "assets": [ "src/templates/*"