diff --git a/README.md b/README.md index 752c4da..2aadef8 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Run VS Code on your server and access it in the browser -**Shipped version:** 4.3.0~ynh1 +**Shipped version:** 4.6.1~ynh1 ## Screenshots @@ -33,17 +33,19 @@ Run VS Code on your server and access it in the browser ### Limitations * Requires a dedicated domain -* Single-user, no LDAP +* `code-server` run as the user you choose during the install +* `code-server` files are stored inside `/home//.local/share/code-server` * Subdomains for services on ports (like 8080.code-server-domain.tld) are not supported ### Extensions -This application uses [Open VSX Registry](https://open-vsx.org/). You can change this setting from the web admin config panel. +This application uses [Open VSX Registry](https://open-vsx.org/). You can change this setting from the config panel. See https://coder.com/docs/code-server/latest/FAQ#how-do-i-use-my-own-extensions-marketplace ## Documentation and resources +* Official app website: * Official user documentation: * Official admin documentation: * Upstream app code repository: diff --git a/README_fr.md b/README_fr.md index 1194b9d..039d320 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,7 +17,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Lancez VS Code sur votre serveur et accédez-y depuis votre navigateur -**Version incluse :** 4.3.0~ynh1 +**Version incluse :** 4.6.1~ynh1 ## Captures d'écran @@ -33,11 +33,19 @@ Lancez VS Code sur votre serveur et accédez-y depuis votre navigateur ### Limitations * Nécessite un domaine dédié -* Un seul utilisateur seulement, pas de LDAP +* `code-server` s'éxécute avec l'utilisateur choisir lors de l'installation +* Les fichiers de `code-server` sont stockés dans `/home//.local/share/code-server` * Les sous-domaines pour les services sur les ports (like 8080.code-server-domain.tld) ne sont pas pris en charge +### Extensions + +Cette application utilie le [catalogue Open VSX](https://open-vsx.org/). Vous pouvez changer ce paramètre depuis le panneau de configuration. + +Voir https://coder.com/docs/code-server/latest/FAQ#how-do-i-use-my-own-extensions-marketplace *(en anglais)* + ## Documentations et ressources +* Site officiel de l'app : * Documentation officielle utilisateur : * Documentation officielle de l'admin : * Dépôt de code officiel de l'app : diff --git a/conf/amd64.src b/conf/amd64.src index 9acce3f..7dada29 100644 --- a/conf/amd64.src +++ b/conf/amd64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.3.0/code-server-4.3.0-linux-amd64.tar.gz -SOURCE_SUM=42c71e98de85270b164b023ef8eb0692cf7700c03081ba5a44eaca014a92eb57 +SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.6.1/code-server-4.6.1-linux-amd64.tar.gz +SOURCE_SUM=da19233080f97b3320514000ad8bf0bb3bd4b1ebf19bcb487c31c04dde7efdef SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/arm64.src b/conf/arm64.src index 754a060..9fd9ed7 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.3.0/code-server-4.3.0-linux-arm64.tar.gz -SOURCE_SUM=37d4543585b730c437048f37d3a759c6530237dbf7b06a1cc98514d036efdba2 +SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.6.1/code-server-4.6.1-linux-arm64.tar.gz +SOURCE_SUM=d809153ddd53f4e531020e9bef8729e6ae71ea873d41f916e8ecebbf614201da SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/armhf.src b/conf/armhf.src index 3e79c5c..b7a83d1 100644 --- a/conf/armhf.src +++ b/conf/armhf.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.3.0/code-server-4.3.0-linux-armv7l.tar.gz -SOURCE_SUM=bb8a43e4bca84be35cfcd62a57b4c5fa958c4e96caa61fb86e803cdbfa6acd78 +SOURCE_URL=https://github.com/coder/code-server/releases/download/v4.6.1/code-server-4.6.1-linux-armv7l.tar.gz +SOURCE_SUM=56347b9dbc4b4bcc4745ad2e6fb73d1b429e51645c30b5bf3a4e227a5ab2ae5d SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index fccc276..1449f2c 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -5,11 +5,12 @@ ### Limitations * Requires a dedicated domain -* Single-user, no LDAP +* `code-server` run as the user you choose during the install +* `code-server` files are stored inside `/home//.local/share/code-server` * Subdomains for services on ports (like 8080.code-server-domain.tld) are not supported ### Extensions -This application uses [Open VSX Registry](https://open-vsx.org/). You can change this setting from the web admin config panel. +This application uses [Open VSX Registry](https://open-vsx.org/). You can change this setting from the config panel. See https://coder.com/docs/code-server/latest/FAQ#how-do-i-use-my-own-extensions-marketplace diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md index 9496bbc..4de9101 100644 --- a/doc/DISCLAIMER_fr.md +++ b/doc/DISCLAIMER_fr.md @@ -5,5 +5,12 @@ ### Limitations * Nécessite un domaine dédié -* Un seul utilisateur seulement, pas de LDAP +* `code-server` s'éxécute avec l'utilisateur choisir lors de l'installation +* Les fichiers de `code-server` sont stockés dans `/home//.local/share/code-server` * Les sous-domaines pour les services sur les ports (like 8080.code-server-domain.tld) ne sont pas pris en charge + +### Extensions + +Cette application utilie le [catalogue Open VSX](https://open-vsx.org/). Vous pouvez changer ce paramètre depuis le panneau de configuration. + +Voir https://coder.com/docs/code-server/latest/FAQ#how-do-i-use-my-own-extensions-marketplace *(en anglais)* diff --git a/manifest.json b/manifest.json index c0e90be..0c308ab 100644 --- a/manifest.json +++ b/manifest.json @@ -6,15 +6,22 @@ "en": "Run VS Code on your server and access it in the browser", "fr": "Lancez VS Code sur votre serveur et accédez-y depuis votre navigateur" }, - "version": "4.3.0~ynh1", + "version": "4.6.1~ynh1", "url": "https://github.com/coder/code-server", "upstream": { "license": "MIT", + "website": "https://coder.com", "admindoc": "https://coder.com/docs/code-server/latest", "userdoc": "https://coder.com/docs/code-server/latest/FAQ", "code": "https://github.com/coder/code-server", "cpe": "cpe:2.3:a:coder:code-server" }, + "antifeatures": { + "non-free-addons": { + "en": "Extensions from the Store might be closed source.", + "fr": "Les extensions disponibles sur la gallerie peuvent être privatrices." + } + }, "license": "MIT", "maintainer": { "name": "Tagada" diff --git a/scripts/install b/scripts/install index 93abf43..3972f51 100755 --- a/scripts/install +++ b/scripts/install @@ -98,7 +98,7 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Creating a data directory..." --weight=2 -datadir=/home/yunohost.app/$app +datadir=/home/$app/.local/share/code-server ynh_app_setting_set --app=$app --key=datadir --value=$datadir mkdir -p $datadir/{user-data,extensions} diff --git a/scripts/upgrade b/scripts/upgrade index 0bf7d3a..76bb9cb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,6 +97,18 @@ then mkdir -p $final_path fi +if ynh_compare_current_package_version -c le -v "4.1.0~ynh1" +then + new_datadir=/home/$app/.local/share/code-server + mkdir -p $new_datadir + + cp -R $datadir/* $new_datadir + ynh_secure_remove --file=$datadir + + datadir=new_datadir + ynh_app_setting_set --app=$app --key=datadir --value=$datadir +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================