Skip to content

Commit

Permalink
Add licenses to release packages (onivim#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryphe authored Jul 29, 2019
1 parent 6a61b92 commit dab5361
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/linux/package-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ cp scripts/linux/AppRun _release/Onivim2.AppDir/AppRun
chmod +x _release/Onivim2.AppDir/AppRun
cp assets/images/icon512.png _release/Onivim2.AppDir/Onivim2.png

cp Outrun-Labs-EULA-v1.1.md _release/Onivim2.AppDir/EULA.md
cp ThirdPartyLicenses.txt _release/Onivim2.AppDir/ThirdPartyLicenses.txt

cp _release/linux/bin/*.* _release/Onivim2.AppDir/usr/bin
cp _release/linux/bin/Oni2 _release/Onivim2.AppDir/usr/bin/Oni2

Expand Down
8 changes: 8 additions & 0 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const textmateServiceSourceDirectory = path.join(rootDirectory, "src", "textmate
const extensionsSourceDirectory = path.join(process.cwd(), "extensions");
// const extensionsDestDirectory = path.join(platformReleaseDirectory, "extensions");

const eulaFile = path.join(process.cwd(), "Outrun-Labs-EULA-v1.1.md");
const thirdPartyFile = path.join(process.cwd(), "ThirdPartyLicenses.txt");

let camomileRoot = process.argv[2];
let camomilePath = path.join(camomileRoot, "share", "camomile");

Expand Down Expand Up @@ -105,6 +108,9 @@ if (process.platform == "linux") {
copy(camomilePath, contentsDirectory);
copy(getRipgrepPath(), path.join(binaryDirectory, "rg"));
copy(getNodePath(), path.join(binaryDirectory, "node"));

fs.copySync(eulaFile, path.join(resourcesDirectory, "EULA.md"));
fs.copySync(thirdPartyFile, path.join(resourcesDirectory, "ThirdPartyLicenses.txt"));

// Copy icon
copy(iconSourcePath, path.join(resourcesDirectory, "Onivim2.icns"));
Expand Down Expand Up @@ -151,6 +157,8 @@ if (process.platform == "linux") {
copy(getRipgrepPath(), path.join(platformReleaseDirectory, process.platform == "win32" ? "rg.exe" : "rg"));
copy(getNodePath(), path.join(platformReleaseDirectory, process.platform == "win32" ? "node.exe" : "node"));
copy(camomilePath, path.join(platformReleaseDirectory, "camomile"));
fs.copySync(eulaFile, path.join(platformReleaseDirectory, "EULA.md"));
fs.copySync(thirdPartyFile, path.join(platformReleaseDirectory, "ThirdPartyLicenses.txt"));
fs.copySync(curBin, platformReleaseDirectory, { deference: true});
fs.copySync(extensionsSourceDirectory, extensionsDestDirectory, {deference: true});
fs.copySync(textmateServiceSourceDirectory, textmateServiceDestDirectory, {deference: true});
Expand Down

0 comments on commit dab5361

Please sign in to comment.