当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Platform.LINUX.createTarget方法代码示例

本文整理汇总了TypeScript中out.Platform.LINUX.createTarget方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Platform.LINUX.createTarget方法的具体用法?TypeScript Platform.LINUX.createTarget怎么用?TypeScript Platform.LINUX.createTarget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在out.Platform.LINUX的用法示例。


在下文中一共展示了Platform.LINUX.createTarget方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: assertPack

test.ifNotCiOsx("ignore node_modules known dev dep", () => {
  const build: any = {
    asar: false,
    ignore: (file: string) => {
      return file === "/ignoreMe"
    }
  }

  return assertPack("test-app-one", {
    targets: Platform.LINUX.createTarget(DIR_TARGET),
    devMetadata: {
      build: build
    }
  }, {
    tempDirCreated: projectDir => {
      return BluebirdPromise.all([
        modifyPackageJson(projectDir, data => {
          data.devDependencies = Object.assign({
              "electron-osx-sign": "*",
            }, data.devDependencies)
        }),
        outputFile(path.join(projectDir, "node_modules", "electron-osx-sign", "package.json"), "{}"),
        outputFile(path.join(projectDir, "ignoreMe"), ""),
      ])
    },
    packed: projectDir => {
      return BluebirdPromise.all([
        assertThat(path.join(projectDir, outDirName, "linux", "resources", "app", "node_modules", "electron-osx-sign")).doesNotExist(),
        assertThat(path.join(projectDir, outDirName, "linux", "resources", "app", "ignoreMe")).doesNotExist(),
      ])
    },
  })
})
开发者ID:FromStoneage,项目名称:electron-builder,代码行数:33,代码来源:globTest.ts

示例2: assertPack

test.ifDevOrLinuxCi("rpm and tar.gz", () => assertPack("test-app-one", {
  targets: Platform.LINUX.createTarget(),
  devMetadata: {
    build: {
      linux: {
        target: ["rpm", "tar.gz"],
      }
    }
  }
}))
开发者ID:FromStoneage,项目名称:electron-builder,代码行数:10,代码来源:linuxPackagerTest.ts

示例3: assertPack

test.ifDevOrLinuxCi("tar", () => assertPack("test-app-one", {
  targets: Platform.LINUX.createTarget(),
  devMetadata: {
    build: {
      linux: {
        // "apk" is very slow, don't test for now
        target: ["tar.xz", "tar.lz", "tar.gz", "tar.bz2"],
      }
    }
  }
}))
开发者ID:lcpo,项目名称:electron-builder,代码行数:11,代码来源:linuxPackagerTest.ts

示例4: assertPack

test.ifNotWindows("custom depends", () => assertPack("test-app-one", {
    targets: Platform.LINUX.createTarget("deb"),
    devMetadata: {
      build: {
        deb: {
          depends: ["foo"],
        }
      }
    }
  },
  {
    expectedDepends: "foo"
  }))
开发者ID:amilajack,项目名称:electron-builder,代码行数:13,代码来源:linuxPackagerTest.ts

示例5: assertPack

test.ifDevOrLinuxCi("failed peer dep", () => {
  return assertPack("test-app-one", {
    targets: Platform.LINUX.createTarget(DIR_TARGET),
  }, {
    npmInstallBefore: true,
    projectDirCreated: projectDir => modifyPackageJson(projectDir, data => {
      //noinspection SpellCheckingInspection
      data.dependencies = {
        "rc-datepicker": "4.0.0",
        "react": "15.2.1",
        "react-dom": "15.2.1"
      }
    }),
  })
})
开发者ID:heinzbeinz,项目名称:electron-builder,代码行数:15,代码来源:globTest.ts


注:本文中的out.Platform.LINUX.createTarget方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。