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
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Fixes ownershp
|
||||||
function main() {
|
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
|
for i in `ls`; do
|
||||||
if [[ -d "${i}" ]]; then
|
if [[ -d "${i}" ]]; then
|
||||||
dpkg --build "${i}"
|
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 java.io.*;
|
||||||
import javafx.beans.value.ChangeListener;
|
import javafx.beans.value.ChangeListener;
|
||||||
import javafx.beans.value.ObservableValue;
|
import javafx.beans.value.ObservableValue;
|
||||||
|
import javafx.concurrent.Task;
|
||||||
|
import javafx.application.Platform;
|
||||||
|
|
||||||
|
|
||||||
public class Controller {
|
public class Controller {
|
||||||
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
|
private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
|
||||||
|
@ -62,12 +65,12 @@ public class Controller {
|
||||||
textAreaPth = dirPathField.getText();
|
textAreaPth = dirPathField.getText();
|
||||||
System.out.println(textAreaPth);
|
System.out.println(textAreaPth);
|
||||||
newDir();
|
newDir();
|
||||||
}
|
}
|
||||||
else {}
|
else {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML void test(ActionEvent event) {
|
@FXML void test(ActionEvent event) {
|
||||||
newDir2();
|
newDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scan selected dir
|
// Scan selected dir
|
||||||
|
@ -88,12 +91,19 @@ public class Controller {
|
||||||
dirPathField.setText("" + directory);
|
dirPathField.setText("" + directory);
|
||||||
|
|
||||||
for (int i=0; i<fileList.length; i++) {
|
for (int i=0; i<fileList.length; i++) {
|
||||||
imgView = new ImageView();
|
imgView = new ImageView();
|
||||||
imgView.setFitWidth(300); // Need these here to get grid properly.
|
imgView.setFitWidth(300); // Need these here to get grid properly.
|
||||||
imgView.setFitHeight(200);
|
imgView.setFitHeight(200);
|
||||||
tilePane.getChildren().add(imgView);
|
tilePane.getChildren().add(imgView);
|
||||||
}
|
}
|
||||||
newDir2();
|
|
||||||
|
Task getDir = new Task<Void>() {
|
||||||
|
@Override public Void call() {
|
||||||
|
newDir2();
|
||||||
|
return null;
|
||||||
|
}};
|
||||||
|
|
||||||
|
new Thread(getDir).start();
|
||||||
}
|
}
|
||||||
public void newDir2() {
|
public void newDir2() {
|
||||||
for (int i=0; i<fileList.length; i++) {
|
for (int i=0; i<fileList.length; i++) {
|
||||||
|
@ -114,8 +124,11 @@ public class Controller {
|
||||||
|
|
||||||
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||||
pth = new Image("file:///tmp/image.png");
|
pth = new Image("file:///tmp/image.png");
|
||||||
|
Platform.runLater(new Runnable() {
|
||||||
view.setImage(pth);
|
@Override public void run() {
|
||||||
|
view.setImage(pth);
|
||||||
|
}
|
||||||
|
});
|
||||||
view.setOnMouseClicked(mouse -> {
|
view.setOnMouseClicked(mouse -> {
|
||||||
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
|
||||||
mouse.consume();
|
mouse.consume();
|
||||||
|
@ -133,7 +146,11 @@ public class Controller {
|
||||||
pth = new Image("file://" + fileList[i]);
|
pth = new Image("file://" + fileList[i]);
|
||||||
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
ImageView view = (ImageView) (tilePane.getChildren().get(i));
|
||||||
|
|
||||||
view.setImage(pth);
|
Platform.runLater(new Runnable() {
|
||||||
|
@Override public void run() {
|
||||||
|
view.setImage(pth);
|
||||||
|
}
|
||||||
|
});
|
||||||
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
|
||||||
// image click actions
|
// image click actions
|
||||||
view.setOnMouseClicked(mouse -> {
|
view.setOnMouseClicked(mouse -> {
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm *.class
|
Loading…
Reference in New Issue