How to Update SlideCast Studio (GAS Update Procedure)
For those using SlideCast Studio via GAS (Google Apps Script), this guide explains how to update to the latest version.
The method introduced here allows you to update while keeping the same URL (bookmark) and retaining all previously created slides, libraries, and settings.
Initial Check
First, please check which of the following situations applies to your current setup.
If you want to update while keeping the URL you have been using
Insert the new V3.2 code into the GAS project you have been using, such as V2.6.If you created V3.2 in a separate GAS project or with a different URL
Save a backup from the old version and load it into V3.2.
* Do not delete the old version until the backup and migration verification are complete.

❶ Basic Update Method (File Replacement + Redeployment)
The SlideCast Studio application itself runs as a GAS project on Google Drive. Created works, libraries, settings, images, audio, and videos are saved in the storage of the browser you are using.
Therefore, if you open the same URL in the same browser and browser profile as before, you can continue to use your previous data. Since it will not be displayed automatically on a different PC or browser, you will need to restore it from a backup.
When updating, you can copy the entire new version from a shared drive, but this has the following disadvantages:
Creating a new GAS project results in a different URL, and your previous works and settings will not be displayed automatically. You will need to save a backup from the old version and restore it in the new version.
Data in the browser from the environment you no longer use may remain. However, if the amount is small, it will have almost no impact on the overall performance of your PC. If there are large amounts of images, audio, and video, they will consume storage space and may affect the saving, loading, and backing up of SlideCast Studio.
If you want to clear space after the backup and restoration verification are complete, perform a data initialization.
To avoid these issues and extra work, we recommend the method of"replacing only the files in your current project and updating within the same project."
With this method, the URL remains the same as before, and your saved slides and settings are carried over as they are.
Procedure
1. Save a backup just in case
Open the SlideCast Studio you are currently using and save a backup from "Data Save" on the dashboard. If you want to transfer not only your works but also your libraries, please select the necessary items on the backup creation screen.
2. Open the GAS project of the SlideCast Studio you are currently using
script.google.com Open the Apps Script editor for the project you are currently using from your project list or from Google Drive.

3. Replace the contents of "Untitled.html" with the new version.
Open "Untitled.html" from the file list on the left, select all of its contents (Cmd/Ctrl+A), delete them, and then copy and paste the contents of the new version of "Untitled.html".

4. Replace "AppBundle.html" in the same way.
Similarly, for "AppBundle.html", select all of its contents, delete them, replace them with the new version's content, and save.

5. If instructed, replace other files in the same way.
Basically, updates will only involve Untitled.html and AppBundle.html, but
if the update article provides instructions, replace "Code.gs" or other files using the same procedure.
6. Save.
Once you have overwritten the files, save them.

7. Open "Deploy" -> "Manage deployments".
Click the "Deploy" button in the top right and select "Manage deployments".

8. Click the pencil (edit) icon for the existing deployment.
On the "Manage deployments" screen, click the pencil icon (edit) to the right of the deployment currently in use.

9. Set "Version" to "New version" and click "Deploy".
Select "New version" from the "Version" dropdown menu and click the "Deploy" button.

10. Complete.
Click "Done" to finish. The web app URL displayed will be the same as before.

With this, your current project remains the same, but only the contents are updated to the latest version.
❷ Note: Select "New version" instead of "New deployment".
When deploying, the key is to select "Manage deployments" -> "Edit existing deployment" -> "New version" instead of "New deployment".
Even within the same project, if you select "New deployment," a new URL will be issued, and the saved slides and data will be treated separately.

❌ New deployment → A new URL is issued (data is also treated separately)
⭕ Manage deployments → Edit existing deployment → New version
→ You can maintain the same URL and continue using the data saved in the same browser.
* Data will not be displayed automatically on a different PC, different browser, or different browser profile. In that case, please restore from a backup.
❸ If you want to consolidate multiple projects into one
If you want to consolidate projects or libraries from versions you no longer use into one, take a backup from the SlideCast Studio dashboard and restore it in the one you use as your main project.


You may delete the old project once the transfer is complete.
After restoring the backup, please check that not only your work but also images, audio, videos, libraries, and settings have been correctly transferred.
Do not delete the old version until you have finished checking.
If you want to clean up the browser data of the old environment after the migration is complete, you can delete it from "Initialize Data" on the old version's dashboard. However, since data initialization cannot be undone, please be sure to save a backup before doing so.

When deleting an old GAS project from Google Drive
Once the migration to the new version is complete, you can move the unused GAS project to the trash from Google Drive or the Apps Script project list.
If you delete a GAS project, its web app URL will become unusable. Do not delete it until you have finished backing up and confirming the migration. It is safer to leave it in the trash for a while immediately after the migration rather than emptying it.
Note that deleting a GAS project from Google Drive does not necessarily mean that the work data saved in the browser will be automatically deleted. Also, since the size of the GAS project itself is small, deleting it will rarely make your PC run noticeably faster.
Conclusion
When updating, please use the "file replacement + new version of existing deployment" method introduced here, rather than copying the entire project from a shared drive.
If there are any points that are unclear or if you encounter any steps that do not proceed as described, please do not hesitate to let me know.
いいなと思ったら応援しよう!
創作活動の継続のために
よろしければ応援お願いします!
いただいたチップはクリエイターとしての活動費に使わせていただきます!