Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
matrix-stickers
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneurs
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
matrix-stickers
Validations
1c3f4583
Valider
1c3f4583
rédigé
Il y a 4 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Update install script
parent
30df2a04
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
.gitignore
+1
-0
1 ajout, 0 suppression
.gitignore
install.sh
+43
-12
43 ajouts, 12 suppressions
install.sh
avec
44 ajouts
et
12 suppressions
.gitignore
+
1
−
0
Voir le fichier @
1c3f4583
working
working
stickerpicker/
Ce diff est replié.
Cliquez pour l'agrandir.
install.sh
+
43
−
12
Voir le fichier @
1c3f4583
#!/bin/bash
#!/bin/bash
BASE_DIR
=
"
$PWD
"
die
()
{
error
$*
cd
$PWD
# Go to initial directory
exit
1
}
error
()
{
echo
-ne
'\e[31m'
$*
'\e[39m\n'
}
warn
()
{
echo
-ne
'\e[33m'
$*
'\e[39m\n'
}
info
()
{
echo
-ne
'\e[32m'
$*
'\e[39m\n'
}
# Clone the stickerpicker into the html repository
# Clone the stickerpicker into the html repository
cd
~/html
cd
~/html
>
/dev/null 2>&1
\
git clone https://github.com/maunium/stickerpicker.git
||
warn
"Could not cd to '~/html', will clone to '
$PWD
/stickerpicker'"
git clone https://github.com/maunium/stickerpicker.git stickerpicker
\
||
die
"Failed to git clone the stickerpicker project."
\
"If you already installed stickerpicker, remove it or use the 'stpkg' command"
# Initialize the stickerpicker with the pack
# Initialize the stickerpicker with the pack
# scalar-privacy_pam.json
# scalar-privacy_pam.json
cd
stickerpicker
cd
stickerpicker
||
die
"Could not cd to '
$PWD
/stickerpicker'"
mv
packs/
*
web/packs
mv
packs/
*
web/packs
||
die
"Failed to cp packs to '
$PWD
/web/packs'"
cd
web/packs
cd
web/packs
||
die
"Failed to cd to '
$PWD
/web/packs'"
touch
index.json
echo
"{
cat
>
index.json
<<
EOF
\"
homeserver_url
\"
:
\"
https://matrix.iiens.net
\"
,
{
\"
packs
\"
: [
"homeserver_url": "https://matrix.iiens.net",
\"
scalar-privacy_pam.json
\"
"packs": [
"scalar-privacy_pam.json"
]
]
}
}
"
>>
index.json
EOF
echo
"Created index.json in ~/html/stickerpicker/web/packs"
[
!
-f
index.json
]
&&
die
"Failed to create the
$PWD
/index.json file"
info
"Created index.json in '
$PWD
'"
# Go to initial directory
cd
$BASE_DIR
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter