mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Update to discourse v2.1.4 (#8)
* Update to discourse v2.1.4 * Update patch name
This commit is contained in:
parent
fec9b03516
commit
bbdbb4499b
5 changed files with 17 additions and 4 deletions
|
@ -32,7 +32,7 @@ Finally, if installing on a low-end ARM device (e.g. Raspberry Pi):
|
||||||
|
|
||||||
To learn more about the philosophy and goals of the project, [visit **discourse.org**](http://www.discourse.org).
|
To learn more about the philosophy and goals of the project, [visit **discourse.org**](http://www.discourse.org).
|
||||||
|
|
||||||
**Shipped version:** 2.0.5
|
**Shipped version:** 2.1.4
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
SOURCE_URL=https://github.com/discourse/discourse/archive/v2.0.5.tar.gz
|
SOURCE_URL=https://github.com/discourse/discourse/archive/v2.1.4.tar.gz
|
||||||
SOURCE_SUM=3e02f90a14ef43f4801792e1811ee7601c897f11c9b27ed5cc9f52b806d0f4ec
|
SOURCE_SUM=d9d4e6b4450b3de9e79e9149babbfd6e3e3d82b88168b6af1b976e524fdbfe94
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Discussion platform",
|
"en": "Discussion platform",
|
||||||
"fr": "Plateforme de discussion"
|
"fr": "Plateforme de discussion"
|
||||||
},
|
},
|
||||||
"version": "2.0.5~ynh1",
|
"version": "2.1.4~ynh1",
|
||||||
"url": "http://Discourse.org",
|
"url": "http://Discourse.org",
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -92,6 +92,7 @@ CREATE EXTENSION IF NOT EXISTS hstore; CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
# Use the patch from https://meta.discourse.org/t/uglifier-error-during-assets-precompile/96970/4 to fix the Uglifier error
|
||||||
ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
# Install LDAP plugin
|
# Install LDAP plugin
|
||||||
mkdir -p "$final_path/plugins/discourse-ldap-auth"
|
mkdir -p "$final_path/plugins/discourse-ldap-auth"
|
||||||
|
|
12
sources/patches/app-1-use-latest_uglify-js.patch
Normal file
12
sources/patches/app-1-use-latest_uglify-js.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
|
||||||
|
index bdca7c30ed..847a8d07c2 100644
|
||||||
|
--- a/lib/tasks/assets.rake
|
||||||
|
+++ b/lib/tasks/assets.rake
|
||||||
|
@@ -95,6 +95,7 @@ def compress_ruby(from, to)
|
||||||
|
data = File.read("#{assets_path}/#{from}")
|
||||||
|
|
||||||
|
uglified, map = Uglifier.new(comments: :none,
|
||||||
|
+ harmony: true,
|
||||||
|
source_map: {
|
||||||
|
filename: File.basename(from),
|
||||||
|
output_filename: File.basename(to)
|
Loading…
Add table
Reference in a new issue