From 97a11110289a01f3488332190bf47b46b028cc20 Mon Sep 17 00:00:00 2001 From: tech189 Date: Fri, 21 Jan 2022 12:13:08 +0000 Subject: [PATCH 1/3] gephi: add version 0.9.2 --- bucket/gephi.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bucket/gephi.json diff --git a/bucket/gephi.json b/bucket/gephi.json new file mode 100644 index 00000000000000..30f7e4410838dd --- /dev/null +++ b/bucket/gephi.json @@ -0,0 +1,31 @@ +{ + "version": "0.9.2", + "description": "Visualization and exploration software for all kinds of graphs and networks", + "homepage": "https://github.com/gephi/gephi", + "license": "GPL-3.0-only", + "url": "https://github.com/gephi/gephi/releases/download/v0.9.2/gephi-0.9.2-windows.exe", + "hash": "cc8dbf806baa157fd34876c940bead660c30d160d391c0189826b5fe270678fb", + "innosetup": true, + "architecture": { + "64bit": { + "shortcuts": [ + [ + "bin\\gephi64.exe", + "Gephi" + ] + ] + }, + "32bit": { + "shortcuts": [ + [ + "bin\\gephi.exe", + "Gephi" + ] + ] + } + }, + "checkver": "github", + "autoupdate": { + "url": "https://github.com/gephi/gephi/releases/download/v$version/gephi-$version-windows.exe" + } +} From bce3eb328e1dc5f1c01cae93b18eb5a8000063ea Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 24 Jan 2022 11:12:03 +0000 Subject: [PATCH 2/3] gephi: installer script and notes --- bucket/gephi.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bucket/gephi.json b/bucket/gephi.json index 30f7e4410838dd..b2563c4e091ed7 100644 --- a/bucket/gephi.json +++ b/bucket/gephi.json @@ -3,9 +3,24 @@ "description": "Visualization and exploration software for all kinds of graphs and networks", "homepage": "https://github.com/gephi/gephi", "license": "GPL-3.0-only", + "notes": "Scoop has configured Gephi to run using your current JAVA_HOME - if that is not Java 8, you will need to modify $dir\\etc\\gephi.conf", + "suggest": { + "Java 8 only": [ + "java/oraclejre8", + "java/liberica8-jdk" + ] + }, "url": "https://github.com/gephi/gephi/releases/download/v0.9.2/gephi-0.9.2-windows.exe", "hash": "cc8dbf806baa157fd34876c940bead660c30d160d391c0189826b5fe270678fb", "innosetup": true, + "post_install": [ + "$conf_file = \"$dir\\etc\\gephi.conf\"", + "$file_contents = Get-Content -path $conf_file -Raw", + "if (($file_contents -match \"#jdkhome\") -contains $true) {", + " $replaced = $file_contents -replace \"#jdkhome=`\"\/path\/to\/jdk`\"\", \"jdkhome=`\"$env:JAVA_HOME`\"\"", + " Set-Content -Path $conf_file -Value $replaced", + "}" + ], "architecture": { "64bit": { "shortcuts": [ @@ -24,6 +39,7 @@ ] } }, + "persist": "etc\\gephi.conf", "checkver": "github", "autoupdate": { "url": "https://github.com/gephi/gephi/releases/download/v$version/gephi-$version-windows.exe" From 46d0655f47fa599206c0403445b04519424d0561 Mon Sep 17 00:00:00 2001 From: tech189 Date: Mon, 24 Jan 2022 11:22:20 +0000 Subject: [PATCH 3/3] gephi: note only shows on first install --- bucket/gephi.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/gephi.json b/bucket/gephi.json index b2563c4e091ed7..7bbf61f66ae1ca 100644 --- a/bucket/gephi.json +++ b/bucket/gephi.json @@ -3,7 +3,6 @@ "description": "Visualization and exploration software for all kinds of graphs and networks", "homepage": "https://github.com/gephi/gephi", "license": "GPL-3.0-only", - "notes": "Scoop has configured Gephi to run using your current JAVA_HOME - if that is not Java 8, you will need to modify $dir\\etc\\gephi.conf", "suggest": { "Java 8 only": [ "java/oraclejre8", @@ -19,6 +18,7 @@ "if (($file_contents -match \"#jdkhome\") -contains $true) {", " $replaced = $file_contents -replace \"#jdkhome=`\"\/path\/to\/jdk`\"\", \"jdkhome=`\"$env:JAVA_HOME`\"\"", " Set-Content -Path $conf_file -Value $replaced", + " Write-Host \"Notes`n-----`nScoop has configured Gephi to run using your current JAVA_HOME - if that is not Java 8, you will need to modify $dir\\etc\\gephi.conf\"", "}" ], "architecture": {