When deploying Google App Script Add-On appscript.json code changes - google-apps-script

I've been trying to update my add-on in the Google Workspace Marketplace and every time I try to deploy, my manifest file (appscript.json) changes, making it impossible to deploy a new version of my add-on.
https://youtu.be/PcNn39z9pac
Does anyone know why this is happening / what I can do to fix this error?
Thanks in advance!

Related

How to use google app script addon by app script manifest or local environment?

I am new to google app script. I don't know how to deploy the Google add-on. I have tried some setups for deployment but have not been able to do the deployment. so, I have some questions below.?
Can we use the google app script add-on without deploying on google marketplace? or
how to use google add-on local environment?.
or
Can we use the google add-on just by passing appscript.json? as we do in excel? In the excel add-in we just pass the manifest file and we put the dist folder on the local server so anyone can use that add-in.
Can anyone guide me about this.
I suggest you read https://developers.google.com/apps-script/add-ons/ and https://developers.google.com/workspace/marketplace
To deploy an add-on (i.e. create a version of the script that can be used by an app in the Google Workspace Marketplace) see https://developers.google.com/apps-script/concepts/deployments
To test an add-on (install it without having to publish it in the Google Workspace Marketplace)
See https://developers.google.com/apps-script/add-ons/how-tos/testing-editor-addons.
To publish an app in the Google Workspace Marketplace see https://developers.google.com/apps-script/add-ons/how-tos/publish-add-on-overview and https://developers.google.com/workspace/marketplace/how-to-publish.
Sheets and other Google Workspace products are on the cloud, so you can't copy a file somewhere to install and add-on. If you have are a Google Workspace customer you can publish a private app in the Marketplace. Then the admin can install the app for its users.

Need help in setup of CI/CD for Google App Script?

We are building an addon using Google App Script and want to publish it to Google Workspace MarketPlace. We are managed to publish versioned deployment using the Manage Deployment feature of App Script.
We are looking to configure CI/CD for App Script addon (whenever changes committed to a git branch, a new deployment id should be created and respective code should be published on Google Workspace MarketPlace).
We didn't find any workaround to configure CI/CD for App Script. Our preference is Azure for CI/CD.
You can use a combination of the
Apps Script API
Where you can manage deployments and versions.
Workspace Marketplace API
Where you can control your app listing.
You may not be able to do absolutely everything but that will be your best place to start.
I am not familiar with Azure but you can look into git actions to run some API request to the above APIs whenever you make a commit to the main branch.

Error:Exception: You do not have permission to call Session.getActiveUser. Required permissions: https://www.googleapis.com/auth/userinfo.email

I recently migrated one of my projects to the new V8 engine of appscript.I am getting this exception
Exception: You do not have permission to call Session.getActiveUser.
Required permissions:
https://www.googleapis.com/auth/userinfo.email..Session.getActiveUser
is not accessible without permission
Any ideas would be appreciated
As stated by #zimday this isssue has been already reported in Google Issue Tracker.
You can follow the issue in this link. Give it a +1 to make Google aware of the people affected by it.
As stated by #Raserhin, there's an open issue with google and the problem seems to be with the new App Script runtime powered by Chrome v8.
A small workaround (until the issue is resolved) will be to disable the App Script runtime as follows: (Run -> Disable App Script runtime powered by Chrome V8). The project will now run with Apps Script Legacy which does not have this issue.

Google Sheet Add-on not updating

I wrote a Google Apps Script and successfully deployed it as a Google Sheets Add-on.
Yesterday, I found a bug, I updated the script, and I deployed a new version of the add on.
No matter what I do, I still see the old version of the add-on in Google Sheets.
I tried to:
1) Reload the Google Sheet file
2) Uninstall and install the plugin
3) Restart Chrome
4) Re-deploy the add-on
Nothing worked.
How can I force Google Sheets to update to the new version of the plugin?
UPDATE: As pointed out by Alan Wells, this is related to the following bug:
https://groups.google.com/forum/#!topic/google-apps-script-community/WTV2CGFTuHU
Workaround: publishing the plugin from the GCP Marketplace configuration screen worked for me.
Thanks,
Fabio
This issue is now fixed. Also the new GSM publishing flow, which no longer requires to publish or update a Chrome Web Store listing, is live.
To update the script of an add-on follow these instructions https://developers.google.com/gsuite/add-ons/how-tos/update-editor-addons#update_published_add-on_code.

Eclipse wait forever when rename a script file on drive and updates on eclipse

When using Google Apps Script plugin on Eclipse, if I rename a file on the web interface and try to "Update Apps Script from Drive" in the eclipse Google context menu, it start waiting forever and block eclipse. I need to force quit, restart eclipse, delete the project and import again to see the updated project with the renamed file.
Any idea whats going on?
This is a bug in the Apps Script feature of GPE. We are now working on a fix. Sorry for the inconvenience, and thank you for your report.