You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/15 11:45:48 UTC

[GitHub] [cordova-electron] KuluGary opened a new issue #188: Windows publish to generic provider

KuluGary opened a new issue #188:
URL: https://github.com/apache/cordova-electron/issues/188


   
   I want to include the ability to publish (as I've done through electron-builder before) a Windows app to a S3 bucket, in order to be able to use electron-builder's auto-upload.
   
   I'm on the stage of being able to deploy my packed app to the storage.
   
   I have a .sh script to start the deployment:
   
   ```
   cordova platform add electron
   
   echo "Setting main.js ..."
   cp res/electron/cdv-electron-main.js platforms/cordova-electron/platform_www/cdv-electron-main.js 2>/dev/null
   cp res/electron/cdv-electron-main.js platforms/electron/platform_www/cdv-electron-main.js 2>/dev/null
   
   echo "Package build ..."
   webpack --config webpack.config.electron.production.js && cordova build electron --release --publish=always
   echo "Done."
   ```
   
   I also have a build.json file.
   
   ```
   {
     "electron": {
       "linux": {
         "package": [
           "dir"
         ]
       },
       "windows": {
         "publish": [
           {
             "provider": "s3",
             "bucket": "hub-staticfiles.bexfyinfra.com"
           }
         ],
         "package": [
           "portable"
         ]
       } 
     }
   }
   ```
   
   and a bucket with the following permissions:
   [![enter image description here][1]][1]
   
   But I don't seem able to publish my app, get the latest.yml or anything of the sort. I believe I have the correct credentials in my .aws/credentials folder too.
   
   Any ideas how can I go about making it work?
   
   Thank you in advance.
   
   
     [1]: https://i.stack.imgur.com/yON3z.png


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org