@expo/traveling-fastlane-linux 1.8.2
“Bundled up fastlane”
Archive member escapes extraction directory.env configuration file
SHA-256aa113eacf900b07d15873b7210166b293072d50e071b057a80f0bb9604e1313d
Evidence
1'use strict';
2
3const { join } = require('path');
4const { version } = require('./package.json');
5
6const TRAVELING_FASTLANE = `traveling-fastlane-${version}-linux-x86_64`;
7
8module.exports = () => {
9 let p = join.bind(null, __dirname, TRAVELING_FASTLANE);
10 return {
11 authenticate: p('authenticate'),
⋯10 lines
1{
2 "name": "@expo/traveling-fastlane-linux",
3 "version": "1.8.2",
4 "description": "Bundled up fastlane",
5 "main": "index.js",
6 "os": ["win32", "linux"],
7 "scripts": {
8 "preinstall": "node platform.js"
9 },
10 "keywords": ["fastlane", "expo", "ruby"],
11 "author": "Edgar Aroutiounian",
12 "license": "MIT",
13 "publishConfig": {
14 "access": "public"
15 }
16}
1// can assume win because we will use this via WSL
2if (!(process.platform === 'win32' || process.platform === 'linux')) {
3 throw new Error('Not running on platform with Linux available');
4}
5
6if (process.platform === 'win32') {
7 var fs = require('fs');
8 var WSL_BASH = 'C:\\Windows\\system32\\bash.exe';
9 fs.access(WSL_BASH, fs.constants.F_OK, function(err) {
10 if (err) {
11 var msg_1 = 'Does not seem like WSL enabled on this machine. Download a ';
12 var msg_2 = 'Linux distro from the Windows Store, run it at least once';
13 var msg_3 = 'and then make sure to run in an admin powershell:\n';
14 var msg_4 =
15 'Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux';
16 console.warn(msg_1 + msg_2 + msg_3 + msg_4);
17 }
18 });
19}
1#!/bin/bash
2
3set -eu
4
5# Figure out where this script is located.
6SELFDIR="`dirname \"$0\"`"
7SELFDIR="`cd \"$SELFDIR\" && pwd`"
8
9export BUNDLE_GEMFILE="$SELFDIR/lib/vendor/Gemfile"
10unset BUNDLE_IGNORE_CONFIG
11
⋯6 lines
18lib_loc="$SELFDIR/lib/app"
19
20exec "$SELFDIR/lib/ruby/bin/ruby" -W0 -I"$lib_loc" -rpreload "$script" "$@"
1require 'spaceship'
2require 'json'
3require 'base64'
4require_relative 'funcs'
5
6$appleId, $password, $teamId, $bundleId, $name = ARGV
⋯12 lines
19 Spaceship::Portal.client.team_id = $teamId
20 ensure_app_exists()
21 $result = { result: 'success' }
22 rescue Spaceship::Client::UnexpectedResponse => e
23 $result = {
⋯5 lines
29 $result = {
30 result: 'failure',
31 reason: 'Invalid credentials',
32 rawDump: invalid_cred.preferred_error_info
33 }
⋯7 lines
41}
42
43$stderr.puts JSON.generate($result)
Showing the top 5 files — 9 more files (102 regions) not shown.
No evidence locations were recorded for this file. Raw result