Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để triển khai phiên bản mới của mã tiện ích bổ sung, hãy làm theo các bước bên dưới.
Chỉnh sửa mã của bạn.
Kiểm thử tiện ích bổ sung bằng cách triển khai đầu phát trung tâm.
Khi bạn đã sẵn sàng phát hành, hãy tạo một phiên bản mới cho quá trình triển khai tiện ích bổ sung. Trong dự án Apps Script, hãy làm theo các bước sau:
Ở trên cùng, hãy nhấp vào Triển khai>Quản lý
các bản triển khai.
Chọn bản triển khai đang hoạt động để tạo phiên bản mới rồi nhấp vào
Chỉnh sửa edit.
Trong mục Phiên bản, hãy chọn Phiên bản mới.
Nhấp vào Triển khai.
Nếu bạn thực hiện các thay đổi để thêm phạm vi trong tệp kê khai của tiện ích bổ sung, hãy thực hiện các bước sau:
Gửi yêu cầu mới để xác minh OAuth từ màn hình xin phép bằng OAuth. Nếu bạn không xác minh lại ứng dụng trước khi phát hành phiên bản mới, thì người dùng sẽ thấy cảnh báo "Ứng dụng này chưa được xác minh".
[null,null,["Cập nhật lần gần đây nhất: 2024-12-22 UTC."],[[["\u003cp\u003eTo deploy a new version of your add-on, you need to make changes to the code, test it, and create a new version for deployment.\u003c/p\u003e\n"],["\u003cp\u003eWhen creating a new version, ensure you select "New version" instead of "New deployment" to avoid disabling existing triggers.\u003c/p\u003e\n"],["\u003cp\u003eIf you add new scopes to your add-on's manifest, you must update the scopes listed in the Google Workspace Marketplace SDK and the OAuth consent screen.\u003c/p\u003e\n"],["\u003cp\u003eFor Editor add-ons, update the version number on the App Configuration page of the Google Workspace Marketplace SDK.\u003c/p\u003e\n"],["\u003cp\u003eUsers do not need to reinstall the add-on for a new version, but they need to authorize any newly added scopes.\u003c/p\u003e\n"]]],["To deploy a new add-on version, modify the code and test it. Then, create a new version from the Apps Script project by managing deployments and selecting \"New version.\" Avoid creating a \"New deployment\" to prevent trigger disablement. If adding scopes, update them in the Google Workspace Marketplace SDK and submit a new OAuth verification request. Editor add-ons need a version number update. Finally, save the changes to publish the new version. Users will only need to authorize new scopes if added.\n"],null,["# Update and manage your published add-on\n\n| **Note:** To change or unpublish your add-on's Google Workspace Marketplace listing, see [Update, unpublish, or check publication status](/workspace/marketplace/manage-app-listing).\n\nTo deploy a new version of your add-on's code, follow the steps below.\n\n1. Make the changes to your code.\n2. Test the add-on using a head deployment.\n3. When you're ready to publish, create a new version for your add-on\n deployment. From the Apps Script project, take the following steps:\n\n 1. At the top, click **Deploy** \\\u003e **Manage\n deployments**.\n 2. Select the active deployment to create a new version for and click Edit edit.\n 3. In the **Version** section, select **New version**.\n 4. Click **Deploy**.\n\n | **Warning:** Make sure that you **don't** choose **New deployment** from the **Deploy** menu in **Step 3.a**. Creating a new deployment generates a new deployment ID. If the add-on is updated to use the new deployment ID, all existing triggers on the previously active deployment are disabled.\n4. If you make changes that add scopes in your add-on's manifest, perform the\n following steps:\n\n 1. Update the [scopes\n listed in the Google Workspace Marketplace SDK](/workspace/marketplace/enable-configure-sdk#oauth_scopes) and the OAuth consent screen to match the scopes listed in the manifest.\n 2. Submit a new request for OAuth verification from your [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent/edit). If you don't reverify your app before publishing the new version, a \"This app isn't verified,\" warning is displayed to your users.\n5. If you're updating an Editor add-on, update the version number on the [App\n Configuration page of the Google Workspace Marketplace SDK](https://console.cloud.google.com/apis/api/appsmarket-component.googleapis.com/googleapps_sdk).\n\n6. Click **Save**. Your new version is published.\n\nYour users don't need to reinstall the add-on, but if you\nadded additional scopes, they need to authorize the new scopes.\n\nTo learn more about creating and managing versions see [Versions](/apps-script/guides/versions)."]]