如果不使用 Head Development,我的 Apps 脚本库会更新吗?

发布于 2025-01-12 08:11:56 字数 122 浏览 3 评论 0原文

我有一个已发布的库,用于可复制的电子表格模板。我不想继续与每个想要复制文档的人共享该库。如果文档的绑定脚本有最新版本的库(不包括头部开发),库会自行更新到最新部署吗?

另外,有没有办法让库自动与创建模板副本的人共享?

I have a library that I have published for use in a copyable spreadsheet template. I don't want to have to keep sharing the library with everyone who wants to make a copy of the document. If the document's bound script has the latest version of the library (excluding the head development), will the library update itself to the latest deployment?

Also, is there a way to have the library be automatically shared with whoever creates a copy of the template?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美人如玉 2025-01-19 08:11:56

使用库看起来并不是实现目标的最便捷方法。相反,请考虑发布一个附加组件。

之所以如此,是因为在将库添加到 Google Apps 脚本项目时,您只是添加了一个指向包含库代码的项目的指针,因此如果您想要复制模板以继续工作,则不应取消共享该库。

使用附加组件时,您可以将所有必需的代码放在上面,这样就不需要共享 Google Apps 脚本项目(但您不能删除它,否则附加组件用户将无法不再使用它)。此外,它还可以更轻松地向用户提供最新版本的脚本,而无需他们使用 Google Apps 脚本编辑器来更新版本号等。

Using a library looks to not be the most convenient way to achieve your goal. Instead consider to publish an add-on.

The above because when adding a library to an Google Apps Script project you are only adding a pointer to the project holding the library code so if you want to make the templates copies to continue working you should not unshare the library.

When using and add-on you could put all the required code on it and doing that there it will not be necessary to share a Google Apps Script project (but you can't delete it otherwise the add-on users will not be able to use it anymore). Also it make it easier to make available to the users de last version of your script without having them to use the Google Apps Script editor to update the version number etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文