Để 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."],[[["To 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."],["When creating a new version, ensure you select \"New version\" instead of \"New deployment\" to avoid disabling existing triggers."],["If 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."],["For Editor add-ons, update the version number on the App Configuration page of the Google Workspace Marketplace SDK."],["Users do not need to reinstall the add-on for a new version, but they need to authorize any newly added scopes."]]],["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"]]