-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a5250b
commit 3351dc2
Showing
44 changed files
with
714 additions
and
4,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Package: surfice-data | ||
Version: <ver> | ||
Architecture: all | ||
Maintainer: NeuroDebian Team <[email protected]> | ||
Description: data files for Surfice | ||
Surfice GUI-based visualization for neuroimaging meshes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
# Fail if anything not planed to go wrong, goes wrong | ||
set -eu | ||
sw=surfice | ||
source ../vers.inc | ||
ver=$kVers | ||
arch=amd64 | ||
#set widgetset set for default(QT5) | ||
wigetset= | ||
sw=${sw}${wigetset} | ||
|
||
pkg=${sw}_${ver}_${arch} | ||
#deb=${pkg}.deb | ||
exePath=${pkg}/usr/bin/ | ||
appPath=${pkg}/usr/share/applications/ | ||
docPath=${pkg}/usr/share/doc/${sw}/ | ||
iconPath=${pkg}/usr/share/icons/hicolor/scalable/apps/ | ||
manPath=${pkg}/usr/share/man/man1/ | ||
man=${sw}.1.gz | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
cd $SCRIPT_DIR | ||
|
||
if [ -z "$wigetset" ] | ||
then | ||
lazbuild --ws=qt5 ../surfice.lpi | ||
else | ||
lazbuild --ws=gtk2 ../surfice.lpi | ||
fi | ||
|
||
#remove previous package files | ||
rm -rf ${pkg} | ||
#copy all required files | ||
#copy control file | ||
mkdir -p ${pkg}/DEBIAN | ||
#cp ./${sw}-control.txt ${pkg}/DEBIAN/control | ||
sed "s/<ver>/$ver/" ./${sw}-control.txt > ${pkg}/DEBIAN/control | ||
#copy executable | ||
mkdir -p ${exePath} | ||
cp ../${sw} ${exePath}${sw} | ||
#copy desktop file | ||
mkdir -p ${appPath} | ||
#cp ${sw}.desktop ${appPath}${sw}.desktop | ||
sed "s/<ver>/$ver/" ./${sw}.desktop > ${appPath}${sw}.desktop | ||
|
||
#copy icon svg | ||
mkdir -p ${iconPath} | ||
cp ${sw}.svg ${iconPath}${sw}.svg | ||
|
||
#copy documents | ||
mkdir -p ${docPath} | ||
cp ../license.txt ${docPath}copyright | ||
#copy manual | ||
mkdir -p ${manPath} | ||
cp ${man} ${manPath}${man} | ||
|
||
dpkg-deb --build --root-owner-group ${pkg} | ||
#remove temporary files | ||
rm -rf ${pkg} | ||
|
||
echo Test the package: | ||
echo sudo dpkg -I ${pkg}.deb | ||
echo sudo dpkg -c ${pkg}.deb | ||
echo sudo dpkg -i ${pkg}.deb | ||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
#Create Debian package for all versions of Surfice | ||
|
||
# Fail if anything not planed to go wrong, goes wrong | ||
set -eu | ||
sw=surfice-data | ||
source ../vers.inc | ||
ver=$kVers | ||
pkg=${sw}_${ver}_all | ||
#deb=${pkg}.deb | ||
resourcePath=${pkg}/usr/share/surfice/ | ||
|
||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
cd $SCRIPT_DIR | ||
|
||
#remove previous package files | ||
rm -rf ${pkg} | ||
#copy all required files | ||
mkdir -p ${pkg}/DEBIAN | ||
#cp ./data-control.txt ${pkg}/DEBIAN/control | ||
sed "s/<ver>/$ver/" ./data-control.txt > ${pkg}/DEBIAN/control | ||
|
||
mkdir -p ${resourcePath} | ||
cp -a ../Resources/. ${resourcePath} | ||
#Linux does not need Windows resources python36.dll and python36.zip | ||
rm -rf ${resourcePath}python*.* | ||
|
||
dpkg-deb --build --root-owner-group ${pkg} | ||
#remove temporary files | ||
rm -rf ${pkg} | ||
exit 0 | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Package: surfice | ||
Version: <ver> | ||
Architecture: amd64 | ||
Maintainer: NeuroDebian Team <[email protected]> | ||
Depends: libqt5pas1, libc6 (>= 2.14), python3:any (>= 3.6), surfice-data (= <ver>) | ||
Description: Surfice | ||
Surfice GUI-based visualization for neuroimaging meshes (using QT5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.TH "SURFICE" "1" "September 2021" "Chris Rorden" "User Commands" | ||
.SH NAME | ||
surfice \- neuroimaging mesh viewing tool | ||
.SH "DESCRIPTION" | ||
Surfice is a GUI-based visualization and analysis tool for neuroimaging | ||
data. It can display triangulated meshes in many formats, including | ||
PLY, GIfTI, FreeSurfer, and OBJ. Surfice can also display diffusion tensor | ||
tractography maps from various formats including TRK and TCK. In addition, | ||
it is able to show connectome maps. | ||
.SH "AUTHOR" | ||
\fBsurfice\fR was written by Chris Rorden. | ||
.PP | ||
This manual page was written by Chris Rorden, | ||
for the Debian project (but may be used by others). | ||
.SH "SEE ALSO" | ||
.BR dcm2niix "(1)" | ||
.TP | ||
\fBSurfice Homepage and Wiki:\fR https://www.nitrc.org/plugins/mwiki/index.php/surfice:MainPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Desktop Entry] | ||
Version=<ver> | ||
Name=Surfice | ||
GenericName=2D/3D MRI Surface Viewer | ||
GenericName[de]=2D/3D Betrachter für MRT-Daten | ||
GenericName[ru]=Просмотр 2D/3D МРТ-данных | ||
Comment=Edit Exec and Icon paths for your system | ||
Exec=surfice %F | ||
TryExec=surfice | ||
Icon=/usr/share/icons/hicolor/scalable/apps/surfice.svg | ||
Terminal=false | ||
Type=Application | ||
Categories=Education;Graphics;Science;DataVisualization;MedicalSoftware;QT5;Viewer; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{$ifdef windows} | ||
{$define PYTHON_DYNAMIC} | ||
{$endif} | ||
{$ifdef linux} | ||
{$define PYTHON_DYNAMIC} | ||
{$endif} | ||
{$ifdef darwin} | ||
//{$define PYTHON_DYNAMIC} | ||
{$endif} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.