部署我的自定义 Google Sheet

Deploying my custom Google Sheet

我一直在寻找我的问题的答案,更可能是使用了错误的术语,我已经通读了 Google 文档,但我现在比开始寻找答案时更加困惑.

我是 Google 应用程序的新手,也是 Javascript 的初学者。我最近开始在 Google Apps 学校工作(我们有自己的域),我已经开始开发一些自定义 Google Sheets 来帮助其他老师并提高生产力。

我开发了一个Sheet带有一些自定义脚本和自定义菜单栏来调用脚本的各种功能。由于我是 Javascript 的新手,我的脚本有一些错误,我在其他用户向我报告时修复了这些错误。但是,我的问题是,当我修复我的 "master" Sheet 中的错误时,最终用户必须打开共享母版 Sheet 并复制它才能从更新中受益。我想将更新推送到 sheet 的所有副本(大约 4 个副本)

我知道需要部署它,但我不知道我是否需要将其部署为 Web 应用程序或来自脚本编辑器的 sheets 插件?同样,我们有自己的域,所以我相信我不需要 Google 批准它就可以在我们的域内部使用它?

基于此 documentation,public 附加组件需要在 public 之前进行审核,因为您有自己的域,您可以仅发布您域中没有评论的用户.

要首次发布附加组件,请同时关注 these steps. If you also want to let Google Apps domain administrators install and authorize your add-on for all users in their domain, follow the steps for domain-wide publication

当您修复错误并希望将其更新到所有工作表副本时,您可以按照此 Update your add-on link 更新您已经发布的附加组件。

  1. Open the add-on project in the script editor.
  2. Make the necessary changes to your code, then save a new version of your project by clicking File > Manage versions, then Save New Version. Close the Manage Versions dialog.
  3. Click Publish > Deploy as add-on. (Or Sheets or Docs or Forms add-on.)
  4. In the dialog that appears, change the add-on's details as needed, select the new version of your script, then click Update store item. (If you change the add-on's name, make sure you also change the name of the Apps Script project to match, as the project name is shown in the authorization dialog.)
  5. In the store listing, click Publish changes, then click OK in the dialog that appears.

希望对您有所帮助!