发布后从我的Google电子表格插件获取代码 [英] Get code from my google spreadsheet addon after publishing
问题描述
我在Google电子表格上发布了一个私人插件。但是,问题是,我丢失了我的插件的应用程序脚本源代码。我需要做一些修改并重新发布。
I had published a private addon on google spreadsheet. However, the problem is, I lost the app script source code for my addon. I need to make some changes and publish it again.
我怎样才能从我在Chrome网上商店发布的电子表格插件中下载代码?
How can I possibly get/download the code from the spreadsheet addon that I published on the chrome web-store?
我试着在 https:// chrome .google.com / webstore / developer / dashboard ,其中列出了所有已发布的插件,但没有阅读源代码的选项。快速谷歌搜索没有揭示这一点。任何建议?
I tried looking on https://chrome.google.com/webstore/developer/dashboard where there is a list of all my addons published but there's no option for reading the source code. A quick google search reveals nothing regarding this. Any suggestions?
推荐答案
我找到了一种方法来查找代码。
I figured out a way to find the code.
从您的开发者信息中心: https://chrome.google.com/webstore/developer/仪表板
From your developer dashboard: https://chrome.google.com/webstore/developer/dashboard
点击更多信息
然后点击下载 main .crx
您感兴趣的插件的文件。
click on more info
and then click to download the main.crx
file for the addon you're interested in.
main.crx
是一个zip文件,你应该能够解压缩。在Linux或Mac上,您可以通过命令行 unzip yourfilename_main.crx
main.crx
is a zip file which you should be able to unzip. On linux or mac you can do it from the command line unzip yourfilename_main.crx
开放 manifest.json
并查找container_id后面的字符串是脚本的文件ID。
open up manifest.json
and look for "container_id" the string after that is the file ID of your script.
https://脚本.google.com / d / container_id_of_your_script_here / edit
https://script.google.com/d/container_id_of_your_script_here/edit
这篇关于发布后从我的Google电子表格插件获取代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!