General updates and some cleanup with installs.
This commit is contained in:
parent
5ecee17034
commit
7d072f4954
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Fixes ownershp
|
||||
function main() {
|
||||
sudo find . -type f -exec chmod 644 {} +
|
||||
sudo find . -type d -exec chmod 755 {} +
|
||||
sudo chown -R root:root ./*/
|
||||
|
||||
# Set postrm permissions
|
||||
for i in `find . -name postrm`; do
|
||||
sudo chmod 555 "${i}"
|
||||
done
|
||||
|
||||
# Set fxwinwrap permissions
|
||||
for i in `find . -name fxwinwrap`; do
|
||||
sudo chmod 755 "${i}"
|
||||
done
|
||||
|
||||
# Set xwinwrap permissions
|
||||
for i in `find . -name xwinwrap`; do
|
||||
sudo chmod 755 "${i}"
|
||||
done
|
||||
|
||||
sudo chmod 755 fxwinwrap*/opt/FXWinWrap/resources/bin/*
|
||||
builder;
|
||||
}
|
||||
|
||||
#builds debs
|
||||
function builder() {
|
||||
for i in `ls`; do
|
||||
if [[ -d "${i}" ]]; then
|
||||
dpkg --build "${i}"
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
find . -type f -exec chmod 644 {} +
|
||||
find . -type d -exec chmod 755 {} +
|
||||
|
||||
chown -R root:root ./*/
|
||||
|
0
src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
Normal file → Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
src/debs/fxwinwrap-0-1-3-x64/opt/FXWinWrap/resources/bin/InstallFFMPEGTHUMB.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x64/opt/FXWinWrap/resources/bin/InstallFFMPEGTHUMB.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
src/debs/fxwinwrap-0-1-3-x86/opt/FXWinWrap/resources/bin/InstallFFMPEGTHUMB.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x86/opt/FXWinWrap/resources/bin/InstallFFMPEGTHUMB.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
0
src/debs/fxwinwrap-0-1-3-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
Normal file → Executable file
Binary file not shown.
Binary file not shown.
|
@ -14,6 +14,9 @@ import javafx.geometry.Insets;
|
|||
import java.io.*;
|
||||
import javafx.beans.value.ChangeListener;
|
||||
import javafx.beans.value.ObservableValue;
|
||||
import javafx.concurrent.Task;
|
||||
import javafx.application.Platform;
|
||||
|
||||
|
||||
public class Controller {
|
||||
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
|
||||
|
@ -67,7 +70,7 @@ public class Controller {
|
|||
}
|
||||
|
||||
@FXML void test(ActionEvent event) {
|
||||
newDir2();
|
||||
newDir();
|
||||
}
|
||||
|
||||
// Scan selected dir
|
||||
|
@ -93,7 +96,14 @@ public class Controller {
|
|||
imgView.setFitHeight(200);
|
||||
tilePane.getChildren().add(imgView);
|
||||
}
|
||||
|
||||
Task getDir = new Task<Void>() {
|
||||
@Override public Void call() {
|
||||
newDir2();
|
||||
return null;
|
||||
}};
|
||||
|
||||
new Thread(getDir).start();
|
||||
}
|
||||
public void newDir2() {
|
||||
for (int i=0; i<fileList.length; i++) {
|
||||
|
@ -114,8 +124,11 @@ public class Controller {
|
|||
|
||||
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||
pth = new Image("file:///tmp/image.png");
|
||||
|
||||
Platform.runLater(new Runnable() {
|
||||
@Override public void run() {
|
||||
view.setImage(pth);
|
||||
}
|
||||
});
|
||||
view.setOnMouseClicked(mouse -> {
|
||||
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
||||
mouse.consume();
|
||||
|
@ -133,7 +146,11 @@ public class Controller {
|
|||
pth = new Image("file://" + fileList[i]);
|
||||
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||
|
||||
Platform.runLater(new Runnable() {
|
||||
@Override public void run() {
|
||||
view.setImage(pth);
|
||||
}
|
||||
});
|
||||
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
||||
// image click actions
|
||||
view.setOnMouseClicked(mouse -> {
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm *.class
|
Loading…
Reference in New Issue