Skip to content

Bug: Can't develop under windows #33

@dbartholomae

Description

@dbartholomae

Description

The project isn't setup for Windows, mainly due to the glob library not being able to handle \ as separator. Therefore, paths need to be normalized before passing them in. E.g. it doesn't sync any built js files as glob doesn't find them due to the \s in distDir:
https://github.com/fnando/streamdeck/blob/main/src/cli/bundle.ts#L231

I'm happy to contribute fixes to this, as I'm devloping on Windows, but wanted to check first whether these would be well received and whether the project is maintained so that there is time to review, merge and release the fixes.

How to reproduce

Run streamdeck link under Windows.

What do you expect

It shoud work.

What happened instead

Error: ENOENT: no such file or directory, rename 'D:\repos\stream-deck-plugin-google-calendar\build\dev.net.startup-cto.calendar-manager.sdPlugin/run.js' -> 'D:\repos\stream-deck-plugin-google-calendar\build\dev.net.startup-cto.calendar-manager.sdPlugin/plugin.js'

Full backtrace

Error: ENOENT: no such file or directory, rename 'D:\repos\stream-deck-plugin-google-calendar\build\dev.net.startup-cto.calendar-manager.sdPlugin/run.js' -> 'D:\repos\stream-deck-plugin-google-calendar\build\dev.net.startup-cto.calendar-manager.sdPlugin/plugin.js'      
    at Object.renameSync (node:fs:980:3)
    at D:\repos\stream-deck-plugin-google-calendar\node_modules\@fnando\streamdeck\dist\cli\bundle.js:178:22
    at Generator.next (<anonymous>)
    at fulfilled (D:\repos\stream-deck-plugin-google-calendar\node_modules\@fnando\streamdeck\dist\cli\bundle.js:5:58)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions