mirror of
https://github.com/YunoHost-Apps/code-server_ynh.git
synced 2024-09-03 18:16:28 +02:00
commit
a2636cdc37
10 changed files with 53 additions and 16 deletions
|
@ -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/<your-user>/.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: <https://coder.com>
|
||||
* Official user documentation: <https://coder.com/docs/code-server/latest/FAQ>
|
||||
* Official admin documentation: <https://coder.com/docs/code-server/latest>
|
||||
* Upstream app code repository: <https://github.com/coder/code-server>
|
||||
|
|
12
README_fr.md
12
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/<votre-utilisateur>/.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 : <https://coder.com>
|
||||
* Documentation officielle utilisateur : <https://coder.com/docs/code-server/latest/FAQ>
|
||||
* Documentation officielle de l'admin : <https://coder.com/docs/code-server/latest>
|
||||
* Dépôt de code officiel de l'app : <https://github.com/coder/code-server>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/<your-user>/.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
|
||||
|
|
|
@ -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/<votre-utilisateur>/.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)*
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue