Git Product home page Git Product logo

Comments (6)

grant avatar grant commented on July 28, 2024 2

I don't plan to integrate the Chrome Webstore API in clasp anytime soon. That would be out of scope of this tool at the moment. There may be other CLIs that are dedicated for this case.

Thanks for the issue though. Feel free to still comment here if you think differently.

from clasp.

ryanolsonx avatar ryanolsonx commented on July 28, 2024

Follow up question: how do I change the current deployment that an add-on uses? Would I need to use the redeploy command to indicate which deployment should be used?

From the Apps Script Clasp Guide:

This command updates an existing deployment with a new version and description:
clasp redeploy <deploymentId> <version> <description>

from clasp.

JeanRemiDelteil avatar JeanRemiDelteil commented on July 28, 2024

While having this feature normalized would be great, it seems that for now it will not be possible with this API, mainly because Doc Add-on are deployed on the Chrome Webstore.

Hence you have to use the Chrome webstore API to deploy your Add-ons.
However, if you choose to use it to deploy an add-on, you will not be able to deploy it again manually, because of an AppsScript internal issue that is not keeping track of the Addon deployement version.

If you still want to go this way, you can use this project that allow local development and deploying your script via command line: https://github.com/JeanRemiDelteil/gas-shell.
I recommend a thorough read of the readme before starting

from clasp.

ryanolsonx avatar ryanolsonx commented on July 28, 2024

Thanks for the reply @JeanRemiDelteil. If the deploy command doesn't deploy a google docs add-on, what is the purpose of clasp deploy?

from clasp.

JeanRemiDelteil avatar JeanRemiDelteil commented on July 28, 2024

The deploy command is there to deploy a 'deployment', which can currently be used for webApp, execution API, or Gmail Addon. You can find the documentation on deployment here:
projects.deployments

For now, the deployment of Doc Add-on is not using the same logic.

Honestly I would love to be able to use a simple 'deploy' command in CLASP to update our Add-ons !
Maybe this new API will help prepare for this !?

from clasp.

grant avatar grant commented on July 28, 2024

@ryanolsonx The process of publishing an add-on is described here:

https://developers.google.com/apps-script/add-ons/publish

Interacting with the Chrome Web Store sounds like a good idea for a different CLI as it seems like a big set of commands with various options. It would be great if we could describe how to tie these two processes together.

Looks like there's already progress with an API/CLI:

API: https://developer.chrome.com/webstore/using_webstore_api
CLI: https://github.com/DrewML/chrome-webstore-upload-cli
npm: https://www.npmjs.com/package/chrome-store-api

Please comment if you try that CLI out and find success.

from clasp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.