aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-apple/apple-dmg/apple-dmg.qbs
blob: b3d39fe27644461f30c431cd238cccbe691da4a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Project {
    AppleApplicationDiskImage {
        Depends { name: "myapp" }
        Depends { name: "ib" }
        dmg.volumeName: "My Great App"
        dmg.iconSize: 128
        dmg.windowWidth: 640
        dmg.windowHeight: 280
        files: [
            "white.iconset",
        ]
    }

    CppApplication {
        name: "myapp"
        targetName: "My Great App"
        files: ["main.c"]

        install: true
    }

    AppleDiskImage {
        name: "hellodmg"
        targetName: "hellodmg-1.0"
                    + (qbs.architecture ? "-" + qbs.architecture : "")

        dmg.volumeName: "Hello DMG"

        files: [
            "hello.icns",
            "hello.tif"
        ]

        Group {
            files: ["en_US.lproj/eula.txt"]
            fileTags: ["dmg.input", "dmg.license.input"]
            dmg.iconX: 320
            dmg.iconY: 240
            dmg.licenseLocale: "en_US"
        }

        Group {
            files: ["*.lproj/**"]
            excludeFiles: ["en_US.lproj/eula.txt"]
        }
    }

    AppleDiskImage {
        name: "green"
        dmg.backgroundColor: "green"
    }

    AppleDiskImage {
        name: "german"
        dmg.defaultLicenseLocale: "de_DE"

        Group {
            files: ["*.lproj/**"]
        }
    }

    AppleDiskImage {
        name: "custom-buttons"

        Group {
            files: ["ru_RU.lproj/eula.txt"]
            dmg.licenseLocale: "sv_SE" // override auto-detected ru_RU with sv_SE
            dmg.licenseLanguageName: "Swedish, not Russian"
            dmg.licenseAgreeButtonText: "Of course"
            dmg.licenseDisagreeButtonText: "Never!"
            dmg.licensePrintButtonText: "Make Paper"
            dmg.licenseSaveButtonText: "Make Bits"
            dmg.licenseInstructionText: "Do please agree to the license!"
        }

        Group {
            files: ["*.lproj/**"]
            excludeFiles: ["ru_RU.lproj/eula.txt"]
        }
    }
}