ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/node-gyp
/
lib
node_modules
npm
node_modules
node-gyp
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
.github
-
chmod
Open
Rename
Delete
bin
-
chmod
Open
Rename
Delete
docs
-
chmod
Open
Rename
Delete
gyp
-
chmod
Open
Rename
Delete
lib
-
chmod
Open
Rename
Delete
node_modules
-
chmod
Open
Rename
Delete
src
-
chmod
Open
Rename
Delete
addon.gypi
5.3 MB
chmod
View
DL
Edit
Rename
Delete
CHANGELOG.md
89.21 MB
chmod
View
DL
Edit
Rename
Delete
CONTRIBUTING.md
1.35 MB
chmod
View
DL
Edit
Rename
Delete
LICENSE
1.08 MB
chmod
View
DL
Edit
Rename
Delete
macOS_Catalina.md
6.51 MB
chmod
View
DL
Edit
Rename
Delete
macOS_Catalina_acid_test.sh
495 B
chmod
View
DL
Edit
Rename
Delete
package.json
1.1 MB
chmod
View
DL
Edit
Rename
Delete
README.md
10.49 MB
chmod
View
DL
Edit
Rename
Delete
SECURITY.md
151 B
chmod
View
DL
Edit
Rename
Delete
update-gyp.py
1.58 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/node-gyp/update-gyp.py
#!/usr/bin/env python3 import argparse import os import shutil import subprocess import tarfile import tempfile import urllib.request BASE_URL = "https://github.com/nodejs/gyp-next/archive/" CHECKOUT_PATH = os.path.dirname(os.path.realpath(__file__)) CHECKOUT_GYP_PATH = os.path.join(CHECKOUT_PATH, "gyp") parser = argparse.ArgumentParser() parser.add_argument("tag", help="gyp tag to update to") args = parser.parse_args() tar_url = BASE_URL + args.tag + ".tar.gz" changed_files = subprocess.check_output(["git", "diff", "--name-only"]).strip() if changed_files: raise Exception("Can't update gyp while you have uncommitted changes in node-gyp") with tempfile.TemporaryDirectory() as tmp_dir: tar_file = os.path.join(tmp_dir, "gyp.tar.gz") unzip_target = os.path.join(tmp_dir, "gyp") with open(tar_file, "wb") as f: print("Downloading gyp-next@" + args.tag + " into temporary directory...") print("From: " + tar_url) with urllib.request.urlopen(tar_url) as in_file: f.write(in_file.read()) print("Unzipping...") with tarfile.open(tar_file, "r:gz") as tar_ref: tar_ref.extractall(unzip_target) print("Moving to current checkout (" + CHECKOUT_PATH + ")...") if os.path.exists(CHECKOUT_GYP_PATH): shutil.rmtree(CHECKOUT_GYP_PATH) shutil.move( os.path.join(unzip_target, os.listdir(unzip_target)[0]), CHECKOUT_GYP_PATH ) subprocess.check_output(["git", "add", "gyp"], cwd=CHECKOUT_PATH) subprocess.check_output(["git", "commit", "-m", "feat(gyp): update gyp to " + args.tag])
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply