1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/strut_ynh.git synced 2024-09-03 20:26:33 +02:00

[enh] Use sources from MohannadNaj's strut fork

This commit is contained in:
ljf 2018-05-27 05:29:07 +02:00
parent f6565f66d8
commit 361093273e
5 changed files with 37 additions and 6 deletions

View file

@ -1,6 +1,6 @@
SOURCE_URL=https://github.com/YunoHost-Apps/strut_ynh/archive/ebd1e859cb1ecc0cc3166969fc1db649f3ddb61c.tar.gz
SOURCE_SUM=9829a1d97f4b3da2e898c7858ce60686a2fe2354001a166a62403a9efdda3c15
SOURCE_URL=https://github.com/MohannadNaj/Strut/archive/467fcb8a6436c84f2acb8ffb31b954d5eb3655b8.tar.gz
SOURCE_SUM=d138ec3116b507d1fc3608f0c8bbb7601a68824403cb20617a80af1906bff3ab
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=strut-20160915-2.tar.gz
SOURCE_FILENAME=strut-20160915-3.tar.gz

View file

@ -2,7 +2,7 @@
"name": "Strut",
"id": "strut",
"packaging_format": 1,
"version": "20160915-2",
"version": "20171224-1",
"url": "http://strut.io",
"license": "AGPL-3.0",
"requirements": {

View file

@ -47,7 +47,10 @@ ynh_clean_setup () {
ynh_secure_remove "$tmp_dir"
}
ynh_setup_source "$tmp_dir"
mv "$tmp_dir/sources" "$final_path"
mv "$tmp_dir/dist" "$final_path"
# Imgur is deactivated on the specific upstream selected, but this text is still here
# Don't use a patch because it's minified js
ynh_replace_string "are currently uploaded to imgur.*re working on changing this" "size is limited" "$final_path/scripts/amd-app.js"
ynh_secure_remove "$tmp_dir"
#=================================================
# NGINX CONFIGURATION

View file

@ -75,7 +75,10 @@ path_url=$(ynh_normalize_url_path $path_url)
# For this app sources are in app subdirectory
tmp_dir=$(mktemp -d)
ynh_setup_source "$tmp_dir"
cp -R "$tmp_dir/sources/." "$final_path/"
cp -R "$tmp_dir/dist/." "$final_path/"
# Imgur is deactivated on the specific upstream selected, but this text is still here
# Don't use a patch because it's minified js
ynh_replace_string "are currently uploaded to imgur.*re working on changing this" "size is limited" "$final_path/scripts/amd-app.js"
ynh_secure_remove "$tmp_dir"
#=================================================

View file

@ -0,0 +1,25 @@
--- a/dist/index.html
+++ b/dist/index.html
@@ -15,15 +15,6 @@
<link rel="apple-touch-icon-precomposed" href="img/strut-touch.png">
<link rel="stylesheet" type="text/css" href="styles/built.css">
<script type="text/javascript" src="preview_export/download_assist/swfobject.js"></script>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-42322531-1', 'strut.io');
- ga('send', 'pageview');
- </script>
</head>
<body class="bg-default">
<!--[IF IE]>
@@ -124,4 +115,4 @@
<div id="modals">
</div>
</body>
-</html>
\ No newline at end of file
+</html>