KhalisFoundation / sttm-desktop

The SikhiToTheMax Desktop App
Open Software License 3.0
34 stars 33 forks source link

Error: Publishing latest Build to Mac App store #1678

Open amitojsingh opened 1 year ago

amitojsingh commented 1 year ago

I have successfully installed Sttm-desktop on my mac and running successfully. However, when I try to publish the build using the command: npm run dist:mac

I got this error. ⨯ NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors github.com/develar/app-builder/pkg/publisher.upload /Volumes/data/Documents/app-builder/pkg/publisher/s3.go:169 github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1 /Volumes/data/Documents/app-builder/pkg/publisher/s3.go:57 github.com/alecthomas/kingpin.(*actionMixin).applyActions /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28 github.com/alecthomas/kingpin.(*Application).applyActions /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557 github.com/alecthomas/kingpin.(*Application).execute /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:390 github.com/alecthomas/kingpin.(*Application).Parse /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222 main.main /Volumes/data/Documents/app-builder/main.go:90 runtime.main /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:255 runtime.goexit /usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581 ⨯ NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors github.com/develar/app-builder/pkg/publisher.upload /Volumes/data/Documents/app-builder/pkg/publisher/s3.go:169 github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1 /Volumes/data/Documents/app-builder/pkg/publisher/s3.go:57 github.com/alecthomas/kingpin.(*actionMixin).applyActions /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28 github.com/alecthomas/kingpin.(*Application).applyActions /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557 github.com/alecthomas/kingpin.(*Application).execute /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:390 github.com/alecthomas/kingpin.(*Application).Parse /Volumes/data/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222 main.main /Volumes/data/Documents/app-builder/main.go:90 runtime.main /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:255 runtime.goexit /usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581 my system version is Node: V14 python: v3 Mac: M1 Monterey v 12.6 branch: release

I tried using node version 12. but with this version, I wasn't able to run the command npm install I got error

sttm-desktop@9.0.4 postinstall /Users/amitoj/sttm-desktop
 electron-builder install-app-deps

Error: Cannot find module 'fs/promises'
Require stack:
- /Users/amitoj/sttm-desktop/node_modules/builder-util/out/fs.js
- /Users/amitoj/sttm-desktop/node_modules/builder-util/out/util.js
- /Users/amitoj/sttm-desktop/node_modules/electron-builder/out/cli/cli.js
- /Users/amitoj/sttm-desktop/node_modules/electron-builder/cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/amitoj/sttm-desktop/node_modules/builder-util/src/fs.ts:5:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/amitoj/sttm-desktop/node_modules/builder-util/src/util.ts:25:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Gauravjeetsingh commented 1 year ago

@amitojsingh can you try with dev branch now, use node 16 for this. We updated all the packages.