From 69c90a8ff034a2ded8b6c01f83bc4596049afd48 Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Fri, 15 Sep 2023 22:54:12 -0300 Subject: [PATCH 1/6] Modified tests, configuration files and descriptions Updated READM.md updated electron-build.json and added package notation and some configurations for AppImage Updated wdio.conf.mts updated many tests to fit krux version v23.9.0 --- README.md | 172 ++++++++++++------ electron-builder.json5 | 18 +- public/logo.svg | 20 -- test/e2e/pageobjects/app.page.ts | 26 +-- .../013.select-version-show-only.spec.ts | 6 +- ...ct-version-selfcustody-release-zip.spec.ts | 18 +- ...downloaded-selfcustody-release-zip.spec.ts | 12 +- ...tody-release-zip-click-back-button.spec.ts | 4 +- ...ease-zip-click-show-details-button.spec.ts | 10 +- ...y-release-zip-click-download-again.spec.ts | 4 +- ...ion-selfcustody-release-zip-sha256.spec.ts | 8 +- ...ded-selfcustody-release-zip-sha256.spec.ts | 12 +- ...lease-zip-sha256-click-back-button.spec.ts | 4 +- ...p-sha256-click-show-details-button.spec.ts | 10 +- ...sha256-click-download-again-button.spec.ts | 4 +- ...ersion-selfcustody-release-zip-sig.spec.ts | 8 +- ...loaded-selfcustody-release-zip-sig.spec.ts | 12 +- ...-release-zip-sig-click-back-button.spec.ts | 4 +- ...elease-zip-sig-show-details-button.spec.ts | 10 +- ...ease-zip-sig-download-again-button.spec.ts | 4 +- ...-selfcustody-pem-click-back-button.spec.ts | 4 +- .../039-verified-official-release.spec.ts | 13 +- wdio.conf.mts | 10 - 23 files changed, 225 insertions(+), 168 deletions(-) delete mode 100644 public/logo.svg diff --git a/README.md b/README.md index 54508eed..62b85c78 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build new-ui branch](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml/badge.svg?branch=new-ui)](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml) +[![Build main branch](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml) # Krux Installer @@ -6,46 +6,36 @@ Krux Installer (alpha versions) aims to be a GUI based tool to build, flash and As it now, the generated application execute, without typing any command in terminal,[flash the firmware onto the device](https://selfcustody.github.io/krux/getting-started/installing/#flash-the-firmware-onto-the-device), for Linux and Windows. -## TODOs - -- Kendryte K210 devices: - - [x] Flash to M5stickV; - - [x] Flash to Sipeed Amigo; - - [x] Flash to Sipeed Bit; - - [x] Flash to Sipeed Dock; - - [ ] Build from source to M5stickV; - - [ ] Build from source to Sipeed Amigo; - - [ ] Build from source to Sipeed Bit; - - [ ] Build from source to Sipeed Dock; - - [ ] Debug for M5stickV; - - [ ] Debug for Sipeed Amigo; - - [ ] Debug for Sipeed Bit; - - [ ] Debug for Sipeed Dock; -- [odudex Android version](https://github.com/odudex/krux_binaries/tree/main/Android): - - [ ] Transfer to device; - - [ ] Build for device; - - [ ] Debug for device. -- Windows: - - [x] Build NSIS installer; - - [ ] Build Portable installer; - - [ ] Build AppX installer; -- Linux: - - [x] Build `AppImage` standalone; - - [ ] Build `deb` package for [apt-get](https://www.debian.org/doc/manuals/apt-howto/); - - [ ] Build `snap` package for [snapcraft](https://snapcraft.io/); - - [ ] Build `pacman` package for [pacman](https://wiki.archlinux.org/title/Pacman). -- MacOS: - - [x] Build DMG installer; - - [ ] Build PKG installer; - - [ ] Build MAS installer; - ## Install -You can download compiled binaries on [releases page](https://github.com/selfcustody/krux-installer/releases) or Build from source: +- See [releases page](https://github.com/selfcustody/krux-installer/releases); or +- [Build from source](/#build-from-source) ## Build from source -### Download +### Download nodejs + +First of all, you will need [Node.js](https://nodejs.org) installed in you system. We recommend use the latest LTS version. + +#### Download from Node.js binaries + +You can install node.js in your system downloading it from official [nodejs website](https://nodejs.org/en/download) and following provided instructions. + +#### Download from NVM (Node Version Manager) + +Alternatively, if you have a linux or macos system, you can have multiple versions of Node.js using [nvm](https://github.com/nvm-sh/nvm). + +To install nvm, follow the [instructions](https://github.com/nvm-sh/nvm#installing-and-updating). + +Once installed, we recomend to install the latest LTS node: + +``` +nvm install --lts +``` + +### Download repository + +Now you can download the source code: ```bash git clone https://github.com/qlrd/krux-installer.git @@ -53,57 +43,99 @@ git clone https://github.com/qlrd/krux-installer.git ### Install dependencies +Install all dependencies: + ```bash yarn install ``` -### Develop +Additionaly, you can upgrade dependencies to its latest versions. Have some caution with this command, +once that executing this command can broke some functionalities, mainly those related to the use of +chrome (base for electron applications) and chromiumdriver (used for E2e tests): -When a change is made, we recommend to `lint`, `dev`, `build` and `test` procedures before make a commit or a PR: +```bash +yarn upgrade-interactive --latest +``` -#### Lint +### Live compile to development environment -Verify code style and syntax errors: +When a change is made, we recommend to execute `dev` subcommand: ```bash -yarn lint +yarn run dev ``` -#### Compiles to a development electron application - -Run electron application with the (vite)[https://vitejs.dev/] server: +if you want to show some debug messages: ```bash -yarn dev +DEBUG=krux:* yarn run dev ``` -### Compiles and minifies for production +### Test + +#### Prepare tests + +To test, you need to write `specification` tests under `pageobjects` definitions: + +- You can write your own [E2E](https://webdriver.io) specification test files on `test/e2e/specs` folder; +- You can define the [PageObjects] on `test/e2e/pageobjects` folder. + +Before run tests, you will need to **build** the application. -Before running build, verify [builder config](electron-builder.json5) to setup the build targets. The `` depends depends on the running platform (i.e., linux, darwin, win32): +#### Build -* Linux: +Before running build, verify [builder config](electron-builder.json5) to setup the build `target` on specific `os` (Operational System). + +The `` depends depends on the running platform (i.e., `linux`, `darwin` -- MacOS, and `win32` -- Windows): + +* `linux`: * `AppImage` * `deb` * `snap` -* Windows: +* `win32`: * `nsis` * `portable` * `AppX` -* Mac: +* `darwin`: * `dmg` * `pkg` * `mas` +#### Run all tests: + +The `wdio.conf.mts` is configured to check if your system have `krux.zip.*` resources. If not, it will, run all tests, including download tests. If yes, it will skip tests that download resources: + +```bash +yarn run build -- +``` + +If you want to debug some messages: + +```bash +DEBUG=krux:* yarn run build -- +``` + + +##### Filter tests + +Additionaly, you can filter some tests with `--filter` option and a based regular expression argument. -Then run: +For example, if you want to exclude tests until `25th` test, you can do this: ```bash -yarn build +yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' ``` -#### Builtin OpenSSL for windows in KruxInstaller +if you want to debug some messages: + + +```bash +DEBUG=krux:* yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' +``` + +#### WARNING: Builtin OpenSSL for windows in KruxInstaller When downloading official krux firmware versions, it is necessary to verify the signature through the OpenSSL tool, as a way to verify the authenticity of the downloaded binaries. @@ -114,3 +146,37 @@ In windows release, we are faced with the peculiarity of the operating system in So, we packaged a stable version of OpenSSL, compiled from the [source](https://github.com/openssl/openssl). The compilation process is done entirely in a reproducible virtual environment and, therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). Since it is compiled in a virtual environment on github, it is expected to be fully verifiable and free of malicious code. You can check the build steps in [actions](https://github.com/qlrd/krux-installer/actions). + +## TODOs + +- Kendryte K210 devices: + - [x] Flash to M5stickV; + - [x] Flash to Sipeed Amigo; + - [x] Flash to Sipeed Bit; + - [x] Flash to Sipeed Dock; + - [ ] Flash to Yahboom Aimotion + - [ ] Build from source to M5stickV; + - [ ] Build from source to Sipeed Amigo; + - [ ] Build from source to Sipeed Bit; + - [ ] Build from source to Sipeed Dock; + - [ ] Debug for M5stickV; + - [ ] Debug for Sipeed Amigo; + - [ ] Debug for Sipeed Bit; + - [ ] Debug for Sipeed Dock; +- [odudex Android version](https://github.com/odudex/krux_binaries/tree/main/Android): + - [ ] Transfer to device; + - [ ] Build for device; + - [ ] Debug for device. +- Windows: + - [x] Build NSIS installer; + - [ ] Build Portable installer; + - [ ] Build AppX installer; +- Linux: + - [x] Build `AppImage` standalone; + - [ ] Build `deb` package for [apt-get](https://www.debian.org/doc/manuals/apt-howto/); + - [ ] Build `snap` package for [snapcraft](https://snapcraft.io/); + - [ ] Build `pacman` package for [pacman](https://wiki.archlinux.org/title/Pacman). +- MacOS: + - [x] Build DMG installer; + - [ ] Build PKG installer; + - [ ] Build MAS installer; \ No newline at end of file diff --git a/electron-builder.json5 b/electron-builder.json5 index 77cc76b4..461c486f 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -3,7 +3,7 @@ */ { "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", - "appId": "YourAppID", + "appId": "org.selfcustody.krux-installer", "asar": true, "directories": { "output": "release/${version}" @@ -21,6 +21,22 @@ "dmg" ] }, + "linux": { + "target": [ + { + "target": "AppImage", + "license": "LICENSE", + "synopsis": "Flash Krux firmware on K210 based devices", + "category": "Utility", + "desktop": { + "Name": "${productName}", + "Comment": "Flash Krux firmware on K210 based devices", + "Icon": "public/icon.png", + "Terminal": False + } + } + ] + }, "win": { "target": [ { diff --git a/public/logo.svg b/public/logo.svg deleted file mode 100644 index 96fc008b..00000000 --- a/public/logo.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/test/e2e/pageobjects/app.page.ts b/test/e2e/pageobjects/app.page.ts index 9ca61b6e..da63b237 100644 --- a/test/e2e/pageobjects/app.page.ts +++ b/test/e2e/pageobjects/app.page.ts @@ -148,10 +148,10 @@ class App { this.__select_device_page_maixpy_back_text__ = 'div#select-device-page-back-text' this.__select_version_page__ = 'div#select-version-page'; - this.__select_version_page_selfcustody_button__ = 'div#select-version-page-selfcustody-krux-releases-tag-v22-08-2-button' + this.__select_version_page_selfcustody_button__ = 'div#select-version-page-selfcustody-krux-releases-tag-v23-09-0-button' this.__select_version_page_back_button__ = 'div#select-version-page-back-button' this.__select_version_page_odudex_button__ = 'div#select-version-page-odudex-krux-binaries-button' - this.__select_version_page_selfcustody_text__ = 'div#select-version-page-selfcustody-krux-releases-tag-v22-08-2-text' + this.__select_version_page_selfcustody_text__ = 'div#select-version-page-selfcustody-krux-releases-tag-v23-09-0-text' this.__select_version_page_odudex_text__ = 'div#select-version-page-odudex-krux-binaries-text' this.__select_version_page_back_text__ = 'div#select-version-page-back-text' @@ -162,22 +162,22 @@ class App { this.__download_official_release_zip_subtitle__ = 'div#download-official-release-zip-page-subtitle' this.__download_official_release_zip_progress__ = 'div#download-official-release-zip-page-progress' - this.__checking_release_zip_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip' - this.__not_found_release_zip_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-not-found' - this.__found_release_zip_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-found' + this.__checking_release_zip_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip' + this.__not_found_release_zip_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-not-found' + this.__found_release_zip_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-found' - this.__checking_release_zip_sha256_txt_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip-sha256-txt' - this.__not_found_release_zip_sha256_txt_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sha256-txt-not-found' - this.__found_release_zip_sha256_txt_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sha256-txt-found' + this.__checking_release_zip_sha256_txt_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip-sha256-txt' + this.__not_found_release_zip_sha256_txt_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sha256-txt-not-found' + this.__found_release_zip_sha256_txt_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sha256-txt-found' this.__download_official_release_zip_sha256_txt_page__ = 'div#download-official-release-zip-sha256-txt-page' this.__download_official_release_zip_sha256_txt_page_title__ = 'div#download-official-release-zip-sha256-txt-page-title' this.__download_official_release_zip_sha256_txt_page_subtitle__ = 'div#download-official-release-zip-sha256-txt-page-subtitle' this.__download_official_release_zip_sha256_txt_page_progress__ = 'div#download-official-release-zip-sha256-txt-page-progress' - this.__checking_release_zip_sig_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip-sig' - this.__not_found_release_zip_sig_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sig-not-found' - this.__found_release_zip_sig_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sig-found' + this.__checking_release_zip_sig_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip-sig' + this.__not_found_release_zip_sig_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sig-not-found' + this.__found_release_zip_sig_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sig-found' this.__download_official_release_zip_sig_page__ = 'div#download-official-release-zip-sig-page' this.__download_official_release_zip_sig_title__ = 'div#download-official-release-zip-sig-page-title' @@ -216,8 +216,8 @@ class App { this.__verified_official_release_page__ = 'div#verified-official-release-page' this.__verified_official_release_page_sha256_integrity_title__ = 'div#verified-official-release-page-sha256-integrity-title' - this.__verified_official_release_page_sha256_integrity_txt__ = 'div#verified-official-release-page-sha256-integrity-v22-08-2-krux-v22-08-2-zip-sha256-txt' - this.__verified_official_release_page_sha256_integrity__ = 'div#verified-official-release-page-sha256-integrity-v22-08-2-krux-v22-08-2-zip' + this.__verified_official_release_page_sha256_integrity_txt__ = 'div#verified-official-release-page-sha256-integrity-v23-09-0-krux-v23-09-0-zip-sha256-txt' + this.__verified_official_release_page_sha256_integrity__ = 'div#verified-official-release-page-sha256-integrity-v23-09-0-krux-v23-09-0-zip' this.__verified_official_release_page_signature_title__ = 'div#verified-official-release-page-signature-title' this.__verified_official_release_page_signature_command__ = 'span#verified-official-release-page-signature-command' this.__verified_official_release_page_signature_result__ = 'span#verified-official-release-page-signature-result' diff --git a/test/e2e/specs/013.select-version-show-only.spec.ts b/test/e2e/specs/013.select-version-show-only.spec.ts index b5418cb8..67876d8b 100644 --- a/test/e2e/specs/013.select-version-show-only.spec.ts +++ b/test/e2e/specs/013.select-version-show-only.spec.ts @@ -72,14 +72,14 @@ describe('KruxInstaller SelectVersion page (show only)', () => { await expectWDIO(instance.selectVersionPage).toBeDisplayed() }) - it('should \'selfcustody/krux/releases/tag/v22.08.2\' button appear', async () => { + it('should \'selfcustody/krux/releases/tag/v23.09.0\' button appear', async () => { await instance.selectVersionSelfcustodyButton.waitForExist() await expectWDIO(instance.selectVersionSelfcustodyButton).toBeDisplayed() }) - it('should \'selfcustody/krux/releases/tag/v22.08.2\' button have \'selfcustody/krux/releases/tag/v22.08.2\' text', async () => { + it('should \'selfcustody/krux/releases/tag/v23.09.0\' button have \'selfcustody/krux/releases/tag/v23.09.0\' text', async () => { await instance.selectVersionSelfcustodyText.waitForExist() - await expectWDIO(instance.selectVersionSelfcustodyText).toHaveText('selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.selectVersionSelfcustodyText).toHaveText('selfcustody/krux/releases/tag/v23.09.0') }) it('should \'odudex/krux_binaries\' button appear', async () => { diff --git a/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts b/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts index a9aeeabc..da1abd68 100644 --- a/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts +++ b/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts @@ -39,25 +39,25 @@ describe('KruxInstaller SelectVersion page (download release)', () => { await instance.selectVersionOdudexText.waitForExist() }) - it('should click on \'selfcustody/krux/tags/v22.08.2\' and go to ConsoleLoad page', async () => { + it('should click on \'selfcustody/krux/tags/v23.09.0\' and go to ConsoleLoad page', async () => { await instance.selectVersionSelfcustodyButton.click() await instance.selectVersionPage.waitForExist({ reverse: true }) await expectWDIO(instance.selectVersionPage).not.toBeDisplayed() }) - it('should \'Checking v22.08.2/krux-v22.08.2.zip\' message appears', async () => { + it('should \'Checking v23.09.0/krux-v23.09.0.zip\' message appears', async () => { await instance.checkingReleaseZipMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipMsg).toBeDisplayed() - await expectWDIO(instance.checkingReleaseZipMsg).toHaveText('Checking v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.checkingReleaseZipMsg).toHaveText('Checking v23.09.0/krux-v23.09.0.zip') }) - it('should \'v22.08.2/krux-v22.08.2.zip not found\' message appears', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip not found\' message appears', async () => { await instance.notFoundReleaseZipMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v22.08.2/krux-v22.08.2.zip not found') + await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v23.09.0/krux-v23.09.0.zip not found') } else if (process.platform === 'win32') { - await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip not found') + await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip not found') } }) @@ -72,10 +72,10 @@ describe('KruxInstaller SelectVersion page (download release)', () => { await expectWDIO(instance.downloadOfficialReleaseZipTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\' subtitle', async () => { + it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\' subtitle', async () => { await instance.downloadOfficialReleaseZipTitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it('should DownloadOfficialReleaseZip page progress until 100%', async () => { @@ -86,7 +86,7 @@ describe('KruxInstaller SelectVersion page (download release)', () => { const percent = parseFloat(percentText.split('%')[0]) return percent === 100.00 }, { - timeout: 60000, + timeout: 600000, interval: 50 }) }) diff --git a/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts b/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts index 010418f0..0d785314 100644 --- a/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts +++ b/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts @@ -42,13 +42,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release - show on await instance.checkingReleaseZipMsg.waitForExist() }) - it('should \'v22.08.2/krux-v22.08.2.zip found\' message appears', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip found\' message appears', async () => { await instance.foundReleaseZipMsg.waitForExist() await expectWDIO(instance.foundReleaseZipMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v22.08.2/krux-v22.08.2.zip found') + await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v23.09.0/krux-v23.09.0.zip found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip found') + await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip found') } }) @@ -57,13 +57,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release - show on await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip already downloaded') } }) diff --git a/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts b/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts index 69bd1f2b..c9a56c8d 100644 --- a/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts +++ b/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts @@ -64,9 +64,9 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click b await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts b/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts index 00298323..7978a514 100644 --- a/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts +++ b/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts @@ -71,16 +71,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click s await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it ('should a overlay text have properly local resource', async () => { @@ -108,7 +108,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click s } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts b/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts index f55b0c3a..cb99754b 100644 --- a/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts +++ b/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts @@ -72,10 +72,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click d await expectWDIO(instance.downloadOfficialReleaseZipTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\' subtitle', async () => { + it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\' subtitle', async () => { await instance.downloadOfficialReleaseZipTitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it('should DownloadOfficialReleaseZip page progress until 100%', async () => { diff --git a/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts b/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts index 0a01a8f4..e188c29e 100644 --- a/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts +++ b/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts @@ -57,12 +57,12 @@ describe('KruxInstaller SelectVersion page (download release sha256.txt)', () => await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'checking v22.08.2/krux-v22.08.2.zip.sha256.txt\' message appears', async () => { + it ('should \'checking v23.09.0/krux-v23.09.0.zip.sha256.txt\' message appears', async () => { await instance.checkingReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSha256txtMsg).toBeDisplayed() }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt not found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt not found\' message appears', async () => { await instance.notFoundReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipSha256txtMsg).toBeDisplayed() }) @@ -78,10 +78,10 @@ describe('KruxInstaller SelectVersion page (download release sha256.txt)', () => await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\' subtitle', async () => { await instance.downloadOfficialReleaseZipSha256txtPageSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it('should DownloadOfficialReleaseZipSha256 page progress until 100%', async () => { diff --git a/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts b/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts index db01f7ba..b2912823 100644 --- a/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts +++ b/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts @@ -54,13 +54,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt found\' message appears', async () => { await instance.checkingReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSha256txtMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt found') + await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip.sha256.txt found') + await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip.sha256.txt found') } }) @@ -69,13 +69,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip.sha256.txt already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip.sha256.txt already downloaded') } }) diff --git a/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts b/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts index 96393265..426eb659 100644 --- a/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts +++ b/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts @@ -70,10 +70,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts b/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts index 7b260166..8f7a0914 100644 --- a/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts +++ b/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts @@ -78,16 +78,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip.sha256.txt\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip.sha256.txt\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it ('should a overlay text have properly local resource', async () => { @@ -115,7 +115,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sha256.txt') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sha256.txt') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts b/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts index eca5350a..016dadb1 100644 --- a/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts +++ b/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts @@ -80,10 +80,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\' subtitle', async () => { await instance.downloadOfficialReleaseZipSha256txtPageSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it('should DownloadOfficialReleaseZipSha256 page progress until 100%', async () => { diff --git a/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts b/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts index 130c966c..225cdb79 100644 --- a/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts +++ b/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts @@ -65,12 +65,12 @@ describe('KruxInstaller SelectVersion page (download release signature)', () => await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'checking v22.08.2/krux-v22.08.2.zip.sig\' message appears', async () => { + it ('should \'checking v23.09.0/krux-v23.09.0.zip.sig\' message appears', async () => { await instance.checkingReleaseZipSigMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSigMsg).toBeDisplayed() }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sig not found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sig not found\' message appears', async () => { await instance.notFoundReleaseZipSigMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipSigMsg).toBeDisplayed() }) @@ -86,10 +86,10 @@ describe('KruxInstaller SelectVersion page (download release signature)', () => await expectWDIO(instance.downloadOfficialReleaseZipSigTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSig page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSig page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\' subtitle', async () => { await instance.downloadOfficialReleaseZipSigSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it('should DownloadOfficialReleaseZipSig page progress until 100%', async () => { diff --git a/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts b/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts index e1b318f9..1a512372 100644 --- a/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts +++ b/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts @@ -65,13 +65,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sig found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sig found\' message appears', async () => { await instance.checkingReleaseZipSigMsg.waitForExist() await expectWDIO(instance.foundReleaseZipSigMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v22.08.2/krux-v22.08.2.zip.sig found') + await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v23.09.0/krux-v23.09.0.zip.sig found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip.sig found') + await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip.sig found') } }) @@ -80,13 +80,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip.sig already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip.sig already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip.sig already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip.sig already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip.sig already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip.sig already downloaded') } }) diff --git a/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts b/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts index 4890902f..534f024d 100644 --- a/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts +++ b/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts @@ -80,10 +80,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts b/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts index fadf8f07..5d04301d 100644 --- a/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts +++ b/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts @@ -85,16 +85,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release signature await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip.sig\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip.sig\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip.sig') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it ('should a overlay text have properly local resource', async () => { @@ -122,7 +122,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release signature } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sig') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts b/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts index ada9138b..3cec6b52 100644 --- a/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts +++ b/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts @@ -87,10 +87,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.downloadOfficialReleaseZipSigTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseSig page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\' subtitle', async () => { + it('should DownloadOfficialReleaseSig page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\' subtitle', async () => { await instance.downloadOfficialReleaseZipSigSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it('should DownloadOfficialReleaseSig page progress until 100%', async () => { diff --git a/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts b/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts index fa5f89ab..6ef1d451 100644 --- a/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts +++ b/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts @@ -86,9 +86,9 @@ describe('KruxInstaller SelectVersion page (already downloaded public key certif await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/039-verified-official-release.spec.ts b/test/e2e/specs/039-verified-official-release.spec.ts index 46c90369..f0344fba 100644 --- a/test/e2e/specs/039-verified-official-release.spec.ts +++ b/test/e2e/specs/039-verified-official-release.spec.ts @@ -96,13 +96,13 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button it('should show sha256sum intergrity sha256.txt', async () => { await instance.verifiedOfficialReleasePageSha2256IntegritySha256txt.waitForExist() await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toBeDisplayed() - await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toHaveText('Expected result from file v22.08.2/krux-v22.08.2.zip.sha256.txt\n26 f9 01 a1 73 90 2e 76 b4 d8 4a 95 ee 3d 55 24 51 bc 08 f6 a0 54 e4 72 d5 a5 4e 62 36 31 27 63') + await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toHaveText('Expected result from file v23.09.0/krux-v23.09.0.zip.sha256.txt\n4a 8a a4 0b 71 f7 df 35 5b d1 54 ff ac 9c 9f 10 99 e8 7a 89 c0 53 32 58 7e bc 02 a2 15 92 ec 1b') }) it('should show sha256sum intergrity sha256 summed result', async () => { await instance.verifiedOfficialReleasePageSha2256IntegritySha256.waitForExist() await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toBeDisplayed() - await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toHaveText('Summed result of file v22.08.2/krux-v22.08.2.zip\n26 f9 01 a1 73 90 2e 76 b4 d8 4a 95 ee 3d 55 24 51 bc 08 f6 a0 54 e4 72 d5 a5 4e 62 36 31 27 63') + await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toHaveText('Summed result of file v23.09.0/krux-v23.09.0.zip\n4a 8a a4 0b 71 f7 df 35 5b d1 54 ff ac 9c 9f 10 99 e8 7a 89 c0 53 32 58 7e bc 02 a2 15 92 ec 1b') }) it('should show openssl authenticity title', async () => { @@ -131,6 +131,11 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button } else { const lang = osLangSync() const home = homedir() + if (process.platform === 'linux' || process.platform === 'darwin') { + openssl = 'openssl' + } else if (process.platform === 'win32') { + openssl = 'openssl.exe' + } if ( lang.match(/en-*/g)) { resources = join(home, 'Documents', 'krux-installer') } else if ( lang.match(/pt-*/g)) { @@ -140,9 +145,9 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button } } - const resourceZip = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') + const resourceZip = join(resources, 'v23.09.0', 'krux-v23.09.0.zip') const resourcePem = join(resources, 'main', 'selfcustody.pem') - const resourceSig = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') + const resourceSig = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sig') const command = [ '$>', `${openssl} sha256 <${resourceZip}`, diff --git a/wdio.conf.mts b/wdio.conf.mts index 7b9089df..ef5e7fde 100644 --- a/wdio.conf.mts +++ b/wdio.conf.mts @@ -72,7 +72,6 @@ if (hasFilter.length > 0) { if (hasFilter[0] === '--filter' || hasFilter[0] === '-f') { const filter = new RegExp(hasFilter[1], 'g') specs.map(async function (file: string) { - console.log(file.match(filter)) if (file.match(filter)) { debug(`Excluding ${file}`) SPECS_TO_EXCLUDE.push(file) @@ -86,16 +85,13 @@ if (hasFilter.length > 0) { // - Positive: add it to SPECS_TO_EXCLUDE // - Negative: add it to SPECS_TO_TEST specs.map(async function (file: string) { - debug(` checking ${file}`) if ( file === 'test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts' || file === 'test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts' ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -106,9 +102,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sha256.txt') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -119,9 +113,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -131,9 +123,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'main', 'selfcustody.pem') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) From f701d787970bc85da894ef46ddc0fe2abc5bb0ed Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Fri, 15 Sep 2023 23:19:09 -0300 Subject: [PATCH 2/6] removed 'new-ui' branch from .github/workflows/build --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a663ab6d..6547efba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - new-ui paths-ignore: - "**.md" #- "**.spec.js" From 25d58afea3117fd84870f0e283b2676ef0914710 Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:05:03 -0300 Subject: [PATCH 3/6] Modified configuration files added 'krux' to 'keywords' property on package.json added 'linux' build configurations on electron-build.json5 --- electron-builder.json5 | 23 +++++++++-------------- package.json | 1 + 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/electron-builder.json5 b/electron-builder.json5 index 461c486f..4d455bb3 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -4,6 +4,7 @@ { "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", "appId": "org.selfcustody.krux-installer", + "productName": "Krux-Installer", "asar": true, "directories": { "output": "release/${version}" @@ -22,20 +23,14 @@ ] }, "linux": { - "target": [ - { - "target": "AppImage", - "license": "LICENSE", - "synopsis": "Flash Krux firmware on K210 based devices", - "category": "Utility", - "desktop": { - "Name": "${productName}", - "Comment": "Flash Krux firmware on K210 based devices", - "Icon": "public/icon.png", - "Terminal": False - } - } - ] + "category": "Utility", + "icon": "public/icon.png", + "desktop": { + "Icon": "org.selfcustody.Krux-Installer", + "Keywords": "electron;krux;vite;vuetify;vue3;vue", + "Terminal": false + }, + "target": [ "AppImage" ] }, "win": { "target": [ diff --git a/package.json b/package.json index 810a3520..63b3dd75 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "private": true, "keywords": [ "electron", + "krux", "vite", "vuetify", "vue3", From 3b4be93048ec24290f72d359aa20df22381a0d5d Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:35:20 -0300 Subject: [PATCH 4/6] Changed 'productName' property to fix sha256 hashing on action --- electron-builder.json5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron-builder.json5 b/electron-builder.json5 index 4d455bb3..065c71bb 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -4,7 +4,7 @@ { "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", "appId": "org.selfcustody.krux-installer", - "productName": "Krux-Installer", + "productName": "krux-installer", "asar": true, "directories": { "output": "release/${version}" @@ -26,7 +26,7 @@ "category": "Utility", "icon": "public/icon.png", "desktop": { - "Icon": "org.selfcustody.Krux-Installer", + "Icon": "org.selfcustody.krux-installer", "Keywords": "electron;krux;vite;vuetify;vue3;vue", "Terminal": false }, From 811fc0ed20a029d716478ae7bc9e588d8e5f8b46 Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:22:20 -0300 Subject: [PATCH 5/6] Fixed README.md according to Lint Markdown CI Job --- README.md | 148 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 102 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 62b85c78..4a846340 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,28 @@ +# Krux Installer + [![Build main branch](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml) -# Krux Installer +Krux Installer (alpha versions) aims to be a GUI based tool to build, +flash and debug [Krux](https://github.com/selfcustody/krux) + +As it now, the generated application execute, +without typing any command in terminal. + +For more information, see [flash the firmware onto the device](https://selfcustody.github.io/krux/getting-started/installing/#flash-the-firmware-onto-the-device). + +## Tested machines + +- Linux: + - Archlinux; + - Ubuntu; +- Windows: + - Windows 10 -Krux Installer (alpha versions) aims to be a GUI based tool to build, flash and debug [Krux](https://github.com/selfcustody/krux) +## Untested machines -As it now, the generated application execute, without typing any command in terminal,[flash the firmware onto the device](https://selfcustody.github.io/krux/getting-started/installing/#flash-the-firmware-onto-the-device), for Linux and Windows. +- MacOS + +**Help Wanted**: we need mac users! ## Install @@ -15,23 +33,29 @@ As it now, the generated application execute, without typing any command in term ### Download nodejs -First of all, you will need [Node.js](https://nodejs.org) installed in you system. We recommend use the latest LTS version. +First of all, you will need [Node.js](https://nodejs.org) +installed in you system. We recommend use the latest LTS version. #### Download from Node.js binaries -You can install node.js in your system downloading it from official [nodejs website](https://nodejs.org/en/download) and following provided instructions. +You can install node.js in your system downloading it from official +[nodejs website](https://nodejs.org/en/download) and following +provided instructions. #### Download from NVM (Node Version Manager) -Alternatively, if you have a linux or macos system, you can have multiple versions of Node.js using [nvm](https://github.com/nvm-sh/nvm). +Alternatively, if you have a linux or macos system, +you can have multiple versions of Node.js using [nvm](https://github.com/nvm-sh/nvm). -To install nvm, follow the [instructions](https://github.com/nvm-sh/nvm#installing-and-updating). +To install nvm, +follow the [instructions](https://github.com/nvm-sh/nvm#installing-and-updating). -Once installed, we recomend to install the latest LTS node: +Once installed, +we recomend to install the latest LTS node: -``` +```bash nvm install --lts -``` +``` ### Download repository @@ -49,9 +73,14 @@ Install all dependencies: yarn install ``` -Additionaly, you can upgrade dependencies to its latest versions. Have some caution with this command, -once that executing this command can broke some functionalities, mainly those related to the use of -chrome (base for electron applications) and chromiumdriver (used for E2e tests): +Additionaly, you can upgrade dependencies to its latest versions. +Have some caution with this command, once that executing this command +can broke some functionalities, mainly those related to the use of +`google-chrome` and `chromiumdriver` in E2e tests. + +**TIP**: Before execute this command, always check the latest supported +`chromium` version at +[Electron Stable Releases page](https://releases.electronjs.org/releases/stable) ```bash yarn upgrade-interactive --latest @@ -75,54 +104,67 @@ DEBUG=krux:* yarn run dev #### Prepare tests -To test, you need to write `specification` tests under `pageobjects` definitions: +To test, +you need to write `specification` tests under `pageobjects` definitions: -- You can write your own [E2E](https://webdriver.io) specification test files on `test/e2e/specs` folder; -- You can define the [PageObjects] on `test/e2e/pageobjects` folder. +- You can write your own [E2E](https://webdriver.io) +specification test files on `test/e2e/specs` folder; -Before run tests, you will need to **build** the application. +- You can define the [PageObjects] on +`test/e2e/pageobjects` folder. + +Before run tests, +you will need to **build** the application. #### Build -Before running build, verify [builder config](electron-builder.json5) to setup the build `target` on specific `os` (Operational System). +Before running build, +verify [builder config](electron-builder.json5) +to setup the build `target` on specific `os` (Operational System). + +The `` depends depends on the running platform +(i.e., `linux`, `darwin` -- MacOS, and `win32` -- Windows). -The `` depends depends on the running platform (i.e., `linux`, `darwin` -- MacOS, and `win32` -- Windows): +For more information, see +[Electron Builder configuration](https://www.electron.build/configuration/configuration) -* `linux`: - * `AppImage` - * `deb` - * `snap` +#### Run all tests: -* `win32`: - * `nsis` - * `portable` - * `AppX` +The `wdio.conf.mts` is configured to check +if your system have `krux.zip.*` resources. -* `darwin`: - * `dmg` - * `pkg` - * `mas` +- If not, it will, run all tests, including download tests; +- If yes, it will skip tests that download resources. -#### Run all tests: -The `wdio.conf.mts` is configured to check if your system have `krux.zip.*` resources. If not, it will, run all tests, including download tests. If yes, it will skip tests that download resources: +```bash +yarn run build +``` + +If you want to build a specific `target` +to a specifi `os`, run ```bash yarn run build -- ``` -If you want to debug some messages: +If you want to debug some messages, add the +`DEBUG` environment variable. + +In linux/mac: + ```bash DEBUG=krux:* yarn run build -- ``` - ##### Filter tests -Additionaly, you can filter some tests with `--filter` option and a based regular expression argument. +Additionaly, you can filter some tests with +`--filter` option and a based regular expression argument. -For example, if you want to exclude tests until `25th` test, you can do this: +For example, if you want to exclude tests until `25th` test, +you can do this: ```bash yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' @@ -137,15 +179,29 @@ DEBUG=krux:* yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' #### WARNING: Builtin OpenSSL for windows in KruxInstaller -When downloading official krux firmware versions, it is necessary to verify the signature through the OpenSSL tool, as a way to verify the authenticity of the downloaded binaries. - -On Unix like releases (Linux and MacOS), verification is easily done since such tool exists natively in operating system. - -In windows release, we are faced with the peculiarity of the operating system in question not having such a tool (see this [issue](https://github.com/qlrd/krux-installer/issues/2)). - -So, we packaged a stable version of OpenSSL, compiled from the [source](https://github.com/openssl/openssl). The compilation process is done entirely in a reproducible virtual environment and, therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). - -Since it is compiled in a virtual environment on github, it is expected to be fully verifiable and free of malicious code. You can check the build steps in [actions](https://github.com/qlrd/krux-installer/actions). +When downloading official krux firmware versions, +it is necessary to verify the signature through the OpenSSL tool, +as a way to verify the authenticity of the downloaded binaries. + +On "Unix like" releases (Linux and MacOS), +verification is easily done since such tool +exists natively in operating system. + +In windows release, +we are faced with the peculiarity of the operating system in question +do not have such a tool +(see this [issue](https://github.com/qlrd/krux-installer/issues/2)). + +So, we packaged a stable version of OpenSSL, and +compiled it from the [source](https://github.com/openssl/openssl). +The compilation process is done entirely in a reproducible virtual environment and, +therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). + +Since it is compiled in a virtual environment on github: +- it is expected to be fully verifiable and free of malicious code; +- it is expected that, if you're developing in Windows machine, +some difficulties will be appear. +- You can check the build steps in [actions](https://github.com/qlrd/krux-installer/actions). ## TODOs From 9cf13e69904699ce0ba144b02b432a5d3bfe834e Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:32:05 -0300 Subject: [PATCH 6/6] Modified Readme Added a 'markdownlint' package to lint locally the README.md fixed README.md according its rules --- README.md | 17 +++++++++-------- package.json | 4 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4a846340..69afc0a7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,9 @@ For more information, see [flash the firmware onto the device](https://selfcusto ## Install -- See [releases page](https://github.com/selfcustody/krux-installer/releases); or +- See [releases page](https://github.com/selfcustody/krux-installer/releases); +or + - [Build from source](/#build-from-source) ## Build from source @@ -125,10 +127,11 @@ to setup the build `target` on specific `os` (Operational System). The `` depends depends on the running platform (i.e., `linux`, `darwin` -- MacOS, and `win32` -- Windows). -For more information, see -[Electron Builder configuration](https://www.electron.build/configuration/configuration) +For more information, +see [Electron Builder](https://www.electron.build/configuration/configuration) +page. -#### Run all tests: +#### Run all tests The `wdio.conf.mts` is configured to check if your system have `krux.zip.*` resources. @@ -136,7 +139,6 @@ if your system have `krux.zip.*` resources. - If not, it will, run all tests, including download tests; - If yes, it will skip tests that download resources. - ```bash yarn run build ``` @@ -153,7 +155,6 @@ If you want to debug some messages, add the In linux/mac: - ```bash DEBUG=krux:* yarn run build -- ``` @@ -172,7 +173,6 @@ yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' if you want to debug some messages: - ```bash DEBUG=krux:* yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' ``` @@ -198,6 +198,7 @@ The compilation process is done entirely in a reproducible virtual environment a therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). Since it is compiled in a virtual environment on github: + - it is expected to be fully verifiable and free of malicious code; - it is expected that, if you're developing in Windows machine, some difficulties will be appear. @@ -235,4 +236,4 @@ some difficulties will be appear. - MacOS: - [x] Build DMG installer; - [ ] Build PKG installer; - - [ ] Build MAS installer; \ No newline at end of file + - [ ] Build MAS installer; diff --git a/package.json b/package.json index 63b3dd75..6586052c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "dev": "vue-tsc --noEmit && vite", "build": "vue-tsc --noEmit && vite build && electron-builder", "preview": "vite preview", - "e2e": "wdio run wdio.conf.mts" + "e2e": "wdio run wdio.conf.mts", + "lint:md": "markdownlint README.md --ignore node_modules" }, "devDependencies": { "@babel/cli": "^7.22.9", @@ -56,6 +57,7 @@ "electron": "^26.0.0", "electron-builder": "^24.4.0", "glob": "^10.3.3", + "markdownlint-cli": "^0.36.0", "mocha": "^10.2.0", "os-lang": "^3.1.1", "rimraf": "^5.0.1",