Skip to content

Commit

Permalink
Update Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Aug 16, 2020
1 parent 3007c29 commit 00534fb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,54 +16,54 @@ let options = {

let windowsURLS = [
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_win32/update.json`,
url: `https://cdn.altv.mp/js-module/%_%/x64_win32/update.json`,
destination: '.'
},
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_win32/modules/node-module.dll`,
url: `https://cdn.altv.mp/js-module/%_%/x64_win32/modules/js-module/js-module.dll`,
destination: './modules'
},
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_win32/libnode.dll`,
url: `https://cdn.altv.mp/js-module/%_%/x64_win32/modules/js-module/libnode.dll`,
destination: '.'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_win32/altv-server.exe`,
url: `https://cdn.altv.mp/server/%_%/x64_win32/altv-server.exe`,
destination: '.'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_win32/data/vehmodels.bin`,
url: `https://cdn.altv.mp/server/%_%/x64_win32/data/vehmodels.bin`,
destination: './data'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_win32/data/vehmods.bin`,
url: `https://cdn.altv.mp/server/%_%/x64_win32/data/vehmods.bin`,
destination: './data'
}
];

let linuxURLS = [
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_linux/update.json`,
url: `https://cdn.altv.mp/js-module/%_%/x64_linux/update.json`,
destination: '.'
},
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_linux/modules/libnode-module.so`,
url: `https://cdn.altv.mp/js-module/%_%/x64_linux/modules/js-module/libjs-module.so`,
destination: './modules'
},
{
url: `https://cdn.altv.mp/node-module/CHANGE_ME/x64_linux/libnode.so.72`,
url: `https://cdn.altv.mp/js-module/%_%/x64_linux/modules/js-module/libnode.so.72`,
destination: '.'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_linux/altv-server`,
url: `https://cdn.altv.mp/server/%_%/x64_linux/altv-server`,
destination: '.'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_linux/data/vehmodels.bin`,
url: `https://cdn.altv.mp/server/%_%/x64_linux/data/vehmodels.bin`,
destination: './data'
},
{
url: `https://cdn.altv.mp/server/CHANGE_ME/x64_linux/data/vehmods.bin`,
url: `https://cdn.altv.mp/server/%_%/x64_linux/data/vehmods.bin`,
destination: './data'
},
{
Expand Down Expand Up @@ -152,13 +152,13 @@ async function startup() {
if (platform === 'windows') {
console.log('Windows');
windowsURLS.forEach(res => {
res.url = res.url.replace('CHANGE_ME', branchSelection);
res.url = res.url.replace('%_%', branchSelection);
});
console.log('You have selected the release branch.');
} else {
console.log('Linux');
linuxURLS.forEach(res => {
res.url = res.url.replace('CHANGE_ME', branchSelection);
res.url = res.url.replace('%_%', branchSelection);
});
console.log('You have selected the release branch.');
}
Expand Down

0 comments on commit 00534fb

Please sign in to comment.