Skip to content

Commit c8d9a79

Browse files
committed
moved deployment script into air folder. added self-signed certificate. Fixed diffCmd.html to work with relative directories.
1 parent afffa0b commit c8d9a79

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

air/airDeploy.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
adt -package -storetype pkcs12 -keystore selfCert.p12 SourceDiff.air SourceDiff-app.xml diffCmd.html AIRAliases.js -C ..\lib bootstrap.min.css -C ..\src Diff.js DiffFormatter.js EditSet.js LineDiff.js LineFormatter.js style.css

air/diffCmd.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Diff test</title>
4+
<title>SourceDiff</title>
55
<link href="bootstrap.min.css" rel="stylesheet" type="text/css">
66
<link href="style.css" rel="stylesheet" type="text/css">
77
<script src="AIRAliases.js" type="text/javascript"></script>
@@ -47,14 +47,14 @@ <h3>Edit</h3>
4747
}
4848

4949
function onInvoke(event) {
50-
var original = readFile(event.arguments[0]);
51-
var edit = readFile(event.arguments[1]);
50+
var original = readFile(event.currentDirectory, event.arguments[0]);
51+
var edit = readFile(event.currentDirectory, event.arguments[1]);
5252

5353
doDiff(original, edit);
5454
}
5555

56-
function readFile(filePath) {
57-
var file = air.File.applicationDirectory.resolvePath(filePath);
56+
function readFile(currentDirectory, filePath) {
57+
var file = currentDirectory.resolvePath(filePath);
5858
var fileStream = new air.FileStream();
5959
fileStream.open(file, air.FileMode.READ);
6060
var contents = fileStream.readUTFBytes(fileStream.bytesAvailable);

air/selfCert.p12

2.34 KB
Binary file not shown.

airDeploy.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)