Skip to content

Commit 7dbc9e5

Browse files
committed
Setup air packaging in project
1 parent e0383bb commit 7dbc9e5

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
bin/
22
.vscode/
3-
.DS_Store
3+
.DS_Store
4+
resources/
5+
6+
# Certificates and keys
7+
*.p12
8+
*.pfx
9+
*.pem
10+
*.crt

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ If you want the original or older versions made by AlternativaPlatform they can
4444
This repository uses the vscode [as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml) extension with the [Adobe AIR SDK](https://airsdk.harman.com/download) 51 from HARMAN, however the project should be able to build and run with any sdk that can target atleast flashplayer 11.
4545

4646
To build just run one of the actionscript build tasks from vscode, such as `compile release` or `compile debug`, which will output the game into the `bin/` folder. To run your built client you will need to download the game `data/` folder and `cfg.dxt1.xml` file from the latest Arena or Crash demos (v3) and place them next to `tanki2.swf`, you can find these files [here](https://github.com/MapMakersAndProgrammers/alternativa-demos/tree/master/alternativa/Tanki2.0).
47+
48+
To package the application you'll need a certificate file (project assumes `./certificate.p12`) and game resources (project assume `data/`, `cfg.dxt1.xml` in `./resources`).

TanksTestingTool-app.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<id>TanksTestingTool</id>
1919

2020
<!-- Used as the filename for the application. Required. -->
21-
<filename>tanki2</filename>
21+
<filename>Tanki Online 2.0</filename>
2222

2323
<!-- Determines the architecture of the Windows captive app (non-Flash Builder workflows only)-->
24-
<!-- <architecture></architecture> -->
24+
<architecture>64</architecture>
2525

2626
<!-- The name that is displayed in the AIR application installer.
2727
May have multiple values for each language. See samples or xsd schema file. Optional. -->
@@ -31,7 +31,7 @@
3131
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
3232
An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 .
3333
For iOS Apps, this represents build number. -->
34-
<versionNumber>1.0.0</versionNumber>
34+
<versionNumber>3</versionNumber>
3535

3636
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users.
3737
For iOS Apps, this represents application version number and format should be (<0-999>.<0-999>.<0-999>).
@@ -67,7 +67,7 @@
6767
<content>bin/tanki2.swf</content>
6868

6969
<!-- The title of the main window. Optional. -->
70-
<!-- <title></title> -->
70+
<title>Tanki Online 2.0</title>
7171

7272
<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
7373
<!-- <systemChrome></systemChrome> -->

asconfig.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,31 @@
99
"default-frame-rate": 100,
1010
"default-size": {
1111
"width": 1024,
12-
"height": 1024
12+
"height": 768
1313
},
1414
"swf-version": 13
1515
},
16+
"airOptions": {
17+
"output": "bin/TanksTestingTool.air",
18+
"signingOptions": {
19+
"storetype": "pkcs12",
20+
"keystore": "certificate.p12"
21+
},
22+
"windows": {
23+
"target": "bundle",
24+
"output": "bin/windows"
25+
},
26+
"files": [
27+
{
28+
"file": "resources/data",
29+
"path": "data"
30+
},
31+
{
32+
"file": "resources/cfg.dxt1.xml",
33+
"path": "cfg.dxt1.xml"
34+
}
35+
]
36+
},
1637
"mainClass": "TanksTestingTool",
1738
"application": "TanksTestingTool-app.xml"
1839
}

0 commit comments

Comments
 (0)