INTO-CPS-Association / into-cps-application

The front-end of the INTO-CPS tool chain
https://into-cps-association.github.io/simulation/app.html
Other
17 stars 8 forks source link

Port to new stack #230

Closed PandoraQS closed 6 days ago

PandoraQS commented 3 weeks ago

Ported the refactory branch in port-to-new-stack. All the required tests work, some UI bugs have been fixed, the code has been cleaned up.

prasadtalasila commented 2 weeks ago

@PandoraQS Some improvements:

playwright config, tsconfig

prasadtalasila commented 1 week ago

npm run dist:win gives the following error.

╰─ npm run dist:win

> into-cps-app@5.0.0 dist:win
> electron-builder --win --x64 -p never

  • electron-builder  version=25.1.7 os=10.0.22631
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=release\builder-effective-config.yaml
  • executing @electron/rebuild  electronVersion=32.1.2 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=win32 arch=x64 electron=32.1.2 appOutDir=release\win-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v32.1.2/electron-v32.1.2-win32-x64.zip size=113 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v32.1.2/electron-v32.1.2-win32-x64.zip duration=9.016s
  • updating asar integrity executable resource  executablePath=release\win-unpacked\INTO-CPS-Application.exe
  • default Electron icon is used  reason=application icon is not set
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.665s
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967.7z
    --
    Path = C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\au598657\git\into-cps-application\node_modules\7zip-bin\win\x64\7za.exe' x -snld -bd 'C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967.7z' '-oC:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\808781967'
                    workingDir=C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 3 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.511s
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747.7z
    --
    Path = C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\au598657\git\into-cps-application\node_modules\7zip-bin\win\x64\7za.exe' x -snld -bd 'C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747.7z' '-oC:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\445083747'
                    workingDir=C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 3 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.84s
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623.7z
    --
    Path = C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\au598657\git\into-cps-application\node_modules\7zip-bin\win\x64\7za.exe' x -snld -bd 'C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623.7z' '-oC:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\865630623'
                    workingDir=C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign
  • Above command failed, retrying 3 more times
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.649s
  ⨯ cannot execute  cause=exit status 2
                    out=
    7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26

    Scanning the drive for archives:
    1 file, 5635384 bytes (5504 KiB)

    Extracting archive: C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287.7z
    --
    Path = C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287.7z
    Type = 7z
    Physical Size = 5635384
    Headers Size = 1492
    Method = LZMA2:24m LZMA:20 BCJ2
    Solid = +
    Blocks = 2

    Sub items Errors: 2

    Archives with Errors: 1

    Sub items Errors: 2

                    errorOut=ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287\darwin\10.12\lib\libcrypto.dylib
    ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287\darwin\10.12\lib\libssl.dylib

                    command='C:\Users\au598657\git\into-cps-application\node_modules\7zip-bin\win\x64\7za.exe' x -snld -bd 'C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287.7z' '-oC:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign\510917287'
                    workingDir=C:\Users\au598657\AppData\Local\electron-builder\Cache\winCodeSign